Github secrets defined in forked repo are not accessible in same repo #26283
-
Hi experts, I have a forked repo. I am trying to create a Github workflow that creates a snap package and upload it. I use snapcore/action-publish action to publish my snap. It requires env var SNAPCRAFT_STORE_CREDENTIALS which I have stored as repository secret in my repo. But the issue is because secret is not accessible, publish steps fails. Please make note that I have added secrets in forked repo and not in upstream as I know that secrets from upstream repo is not available in fork. Here is a yaml.
echo ${{ secrets.MAC_NAME }} is also not printing anything. Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It is solved now. It required clone and push using SSH keys instead of regular username and personal token. |
Beta Was this translation helpful? Give feedback.
-
Thanks for coming back and updating the discussion. :slight_smile: This might help others with similar query. |
Beta Was this translation helpful? Give feedback.
It is solved now. It required clone and push using SSH keys instead of regular username and personal token.