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

Test CI is failing for external contributors #47

Open
benoit74 opened this issue Sep 17, 2024 · 1 comment
Open

Test CI is failing for external contributors #47

benoit74 opened this issue Sep 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@benoit74
Copy link
Collaborator

Currently, test CI is using the pull_request trigger. However, with this trigger the secrets are not populated when the PR author is external to the repository.

This is done on purpose for security reasons: https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/

Many persons on the internet suggest to use pull_request_target, but according to a rapid oversight of github securitylab article, this is only a workaround with does not help with security at all.

The proper solution seems to separate the workflow in two:

  • existing workflow will only publish the coverage.xml as an artifact
  • a new workflow will be responsible to publish this coverage.xml

Seems pretty simple to implement, but to be confirmed (I skimmed through github article way too fast) and tested of course.

@rgaudin
Copy link
Member

rgaudin commented Sep 17, 2024

Indeed!

For use cases where there's more to protect than coverage upload, we use github deployments with validations (to be seen in kiwix/apple)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants