hypertrace / javaagent

Hypertrace OpenTelemetry Java agent with payload/body and headers data capture.
Apache License 2.0
30 stars 15 forks source link

🐛 fix bug where build/smoke test checkout action usage checks out head of main branch #342

Closed ryandens closed 3 years ago

ryandens commented 3 years ago

Description

For some reason, actions that use the pull_request_target attribute causes the deefault checkout destination of the checkout action to be whatever is currently the head of origin/main. This can allow build/test errors from PRs make it into the main branch before failing (but not allowing them to be released). An example PR is #337. Note, the GHA all passed on commit e9d665c. However, note the checkout action step for that PR here. It checks out the commit from what was currently the head of origin/main (ref 4a920915c55e3d0e86806482bec736554315100b) and caused the PR to pass all builds, only to have the main build fail once the PR was merged. This resulted in us needing to quickly patch in PR #338.

Testing

Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.

Checklist:

Documentation

Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.