You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gh attestation trusted-root command does an auth check despite the fact that it doesn't interact with an GH APIs.
Steps to reproduce the behavior
Run gh attestation trusted-root from a GH Actions workflow without providing an auth token.
Expected vs actual behavior
When running in GH Actions, you may see an error like the following:
gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable. Example:
env:
GH_TOKEN: ${{ github.token }}
Error: Process completed with exit code 4.
Since this command doesn't actually interact with any GH APIs, there is no reason to force a token to be present.
Activity