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

docs(fix): note that action secrets are unavailable to just prs from forks #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zimeg
Copy link

@zimeg zimeg commented Jun 28, 2024

Summary

👋 This PR adds some nuance to how tokens can be accessed in workflows since PRs might use the secrets if not configured otherwise - forked PRs instead have no access to secrets at all!

Preview

Some testing in this PR shows pushes to the cache from the Post Setup cachix caches step in the first run:

[2024-06-28 03:47:53][Info] Starting Cachix Daemon
...
[2024-06-28 03:48:37][Info] Pushing /nix/store/2x604xn8hs4qlba5ai6k0d4qsvj422p4-etime-1.0.1
[2024-06-28 03:48:40][Info] Pushed /nix/store/2x604xn8hs4qlba5ai6k0d4qsvj422p4-etime-1.0.1

I found that the following can be used to skip pushing cache updates on pull requests if that's preferred too:

        - name: Setup cachix caches
+         if: github.event_name != 'pull_request'
          uses: cachix/cachix-action@v15

Open to updating this with whatever changes! Thank you for a cool cache! 🙏

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.

1 participant