[FEAT] `secrets.GITHUB_TOKEN` doesn't work with GitHub auth engine
See original GitHub issueIs your feature request related to a problem? Please describe.
secrets.GITHUB_TOKEN
cannot be used to authenticate to the GitHub secrets engine.
Describe the solution you’d like
The secrets.GITHUB_TOKEN
is able to be exchanged for a Vault token.
Additional context
It seems Vault wants to call https://api.github.com/user
for the token that was passed to the auth engine. But the token isn’t scoped to that API, and returns GET https://api.github.com/user: 403 Resource not accessible by integration
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Automatic token authentication - GitHub Docs
The GITHUB_TOKEN secret is a GitHub App installation access token. You can use the installation access token to authenticate on behalf of the...
Read more >GITHUB_TOKEN does not have access to other private ...
The GITHUB_TOKEN should have package:read access to all packages in the same org. ... On a more serious note, why doesn't app accounts...
Read more >Can't use GitHub CLI with GITHUB_TOKEN to mark PR as ...
I'm using it to create a new branch and then a pull request from a GitHub Actions workflow; to authenticate, I use the...
Read more >Automatic token authentication - GitHub Enterprise Server 3.4 ...
If the default permissions for the GITHUB_TOKEN are restrictive, you may have to elevate the permissions to allow some actions and commands to...
Read more >The GITHUB_TOKEN in GitHub Actions: How it Works ...
The GITHUB_TOKEN secret is basically a GitHub App installation access token. Before each job begins, GitHub fetches an installation access ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We also assumed that this is working, because the
${{ secrets.GITHUB_TOKEN }}
is used in the examples:https://github.com/hashicorp/vault-action/blob/master/README.md#authentication-method
Closing since this is documented and a known limitation of Vault’s GH auth method.