-
Notifications
You must be signed in to change notification settings - Fork 365
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: Find a solution to running tests that require GitHub secrets from forked PRs #1769
Comments
What do you think of trying https://github.com/imjohnbo/ok-to-test? |
That flow looks cool 🚀
I'm not sure but this https://github.com/imjohnbo/ok-to-test/blob/1b4bf926f1c3ed5b945803742a455d6b18529b53/.github/workflows/ok-to-test.yml#L5 should run on any comment? |
I believe this will tell the I could set this up in a repo on my personal account and take it for a spin. If we're happy with how it works, we can adopt it. What do you think? |
You're correct. That should work.
Sounds good to me. Using a GitHub app at an org level to create elevated tokens would be great too (at the moment we're using Personal Access Tokens from a bot account for each repo that needs it). |
Context #1768
We have several tests that require Netlify API access. We enable API access in CI by configuring a GitHub secret
cli/.github/workflows/main.yml
Line 38 in 2110739
The problem is that GitHub secrets are not available for workflows running from forked PRs (for security reasons).
We should figure out a way to still run those tests on such PRs.
One possible solution is to mock API calls for those tests.
Another would be to manually run the tests on the reviewer's machine as a part of the PR review process.
Thoughts
The text was updated successfully, but these errors were encountered: