-
Notifications
You must be signed in to change notification settings - Fork 89
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
GITHUB_TOKEN generated from GitHub App Jwt could not be used. #9
Comments
Thanks for reporting this issue.
Seems the only way around this would be to allow a hardcoded repository pattern to avoid the Perhaps a flag like |
Yes, that's what I exactly imagine! |
@jpoehnelt, Thanks, I've tested as Repository Private Actions and confirm work great!
- uses: ./.github/actions/secrets-sync-action
with:
SECRETS: |
^SYNC_
REPOSITORIES: |
MyCompany/ServiceA
MyCompany/Foo
MyCompany/Bar
GITHUB_TOKEN: ${{ env.GITHUBTOKEN_REPO }}
REPOSITORIES_LIST_REGEX: "false"
DRY_RUN: "false"
env:
SYNC_A: "A"
SYNC_B: "B"
SYNC_C: "C" |
Pushed up the new See: 8d158da |
awesome. |
🎉 This issue has been resolved in version 1.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hi, thanks for making this!
Concept is clear and it work very well on my private account.
Summary
Is there any plan to allow using GitHub App's generated token for GITHUB_TOKEN?
Description
I've tried to use Organization's GitHub App to generate GitHub Token, which is non-user related token and organization easily control app's permission and integration. However I met following error when trying to use this token.
Reproduce
Secrets
andActions
read-write, then install it.GITHUB_APP_TOKEN
and try run secrets-sync-action.You may got following error.
Reason
This seems due to
await octokit.repos.listForAuthenticatedUser
API using at github.tsIt is useful API and works great for User Token.
However Github App's integrated token is not supporting this API.
The text was updated successfully, but these errors were encountered: