Enable GHA from a public fork on a public organization repository #9
Unanswered
sydrawat01
asked this question in
Q&A
Replies: 1 comment
-
A possible solution could be using the env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} and running the action only on approval of the repo owner/maintainer and also to restrict the workflow from running by requesting approval to run the workflow. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Organization level secrets not accessible in GitHub actions workflow
I am following the forking workflow for my project, where I have an organization with a public repository. This organization has org level secrets that I pass to my unit test GitHub actions workflow.
I fork this repository(from the org), make changes in a separate branch in my fork, and then open a PR from my fork to the org's master branch, where the CI workflow runs.
The workflow fails because it was not able to access the secrets that I have defined at the org level.
The same steps work when the repo in the org is private.
For reference, this is the failed workflow
Beta Was this translation helpful? Give feedback.
All reactions