-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: use GitHub application token #3616
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…se-github-application-token
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Annotating permissions required for release application
Coverage Report:
Changed Files:
|
@@ -17,10 +17,26 @@ jobs: | |||
if: github.actor == 'dependabot[bot]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is happening in this workflow that requires an app token? It looks like it's only manipulating the contents of the current repo, which should be a matter of adjusting the existing token permissions, not using an app.
@@ -109,7 +118,7 @@ jobs: | |||
pnpm changeset publish --tag next | |||
env: | |||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of these changes don't look like they need an app - only the stuff doing anything to other repos should need special access. The default token should work fine for changes to this repo.
Summary
GITHUB_TOKEN
usage to use an application token.Next steps
Create GitHub application (see here)
Actions
:Read+Write
(to trigger workflows onFuelLabs/docs-hub
+FuelLabs/migrations-and-disclosures
)Contents
:Read+Write
Pull requests
:Read + Write
Issues
:Read
Populate GitHub actions:
APP_ID
(application ID)PRIVATE_KEY
(application private key)Checklist