Skip to content
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

ci: run build workflow on external pull requests #49

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

fmoessbauer
Copy link
Member

Currently we don't run the build workflow on external pull requests. This makes it tricky to detect build and style issues on these requests.

As we already require explicit approval for all external contributors before running the action, it is fine to also enable the workflow. Further, I carefully checked the configuration of the repo with the poutine tool for possible bypasses.

@fmoessbauer
Copy link
Member Author

@michaeladler Is this the solution you recently proposed?

Currently we don't run the build workflow on external pull requests.
This makes it tricky to detect build and style issues on these requests.

As we already require explicit approval for all external contributors
before running the action, it is fine to also enable the workflow.
Further, I carefully checked the configuration of the repo with the
poutine tool for possible bypasses.

Signed-off-by: Felix Moessbauer <[email protected]>
Copy link
Member

@michaeladler michaeladler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, although I'd run it on all branches too, see my comment.

@@ -6,6 +6,9 @@ name: build browser extension

on:
push:
branches:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might wanna run it on all branches since it's cheap. Then you can write:

on: [push, pull_request, workflow_dispatch]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this makes it execute twice for PRs which are pushed to branches on this project.

@fmoessbauer fmoessbauer requested review from jan-kiszka and removed request for bufferoverflow November 18, 2024 09:57
@fmoessbauer fmoessbauer merged commit 67ac8c5 into main Nov 18, 2024
3 checks passed
@fmoessbauer fmoessbauer deleted the fm/ci-run-on-pr branch November 18, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants