-
Notifications
You must be signed in to change notification settings - Fork 15
Run integration tests after workflow run #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 13975687207Details
💛 - Coveralls |
It turns out that `pull_request_target` runs regardless of permissions, as code that is run is considered to be trusted, which we don’t necessarily want. Changing this to `workflow_run` ensures that the action is ONLY run after the rest of the CI runs (which will need to be accepted for external contributions). Like `pull_request_target`, `workflow_run` triggers have access to secrets, but won’t get triggered until the other actions are approved and have run.
9457f6d
to
95ffe87
Compare
Running Zizmor, we had some suggestions made to tighten security
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a rethink whilst re-reading https://woodruffw.github.io/zizmor/audits/#dangerous-triggers
426add2
to
06c03ed
Compare
Annoyingly, we need to access secrets to run the integration tests, but this approach is more secure than the one we added last time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that the CI actions should block external code from running without permission, this is probably better than what stood before, even if it replaces a horrible workflow with a different horrible workflow. Don't like it, will take a closer look tomorrow.
06c03ed
to
2563dfa
Compare
It turns out that
pull_request_target
runs regardless of permissions, as code that is run is considered to be trusted, which we don’t necessarily want.Changing this to
workflow_run
ensures that the action is ONLY run after the rest of the CI runs (which will need to be accepted for external contributions). Likepull_request_target
,workflow_run
triggers have access to secrets, but won’t get triggered until the other actions are approved and have run.