-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
bugSomething isn't workingSomething isn't workinggh-attestationrelated to the gh attestation commandrelated to the gh attestation command
Description
Describe the bug
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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-attestationrelated to the gh attestation commandrelated to the gh attestation command