-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update GitHub Actions permissions #2
Comments
This has come back to bite me already 🤷♂️
|
So I need to:
|
Turns out there is no wiki specific one that I could find? permissions:
actions: read|write|none
checks: read|write|none
contents: read|write|none
deployments: read|write|none
id-token: read|write|none
issues: read|write|none
discussions: read|write|none
packages: read|write|none
pages: read|write|none
pull-requests: read|write|none
repository-projects: read|write|none
security-events: read|write|none
statuses: read|write|none I think it must be the |
The publish action still doesn't work 🤔 jobs:
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
packages: write
steps:
- uses: actions/checkout@v3 Maybe it has to be contents: write too? |
Turns out the easiest way to fix it is to just give up an use |
Accidentally closed in an attempt to fix. |
The |
Since I figured I don't want to have to every 30 days change the token, I thought that now is the time before there's more than 3 issues to transfer everything to a new repo. So I did. This is a new repo that DOES have the generated from tag, but also magically works now. So yeah, worth it! That is, if it ends up working... |
Solved as "good enough": just use the generated one and it works OK. Don't completely know why, but 🤷♂️ |
— https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
Here's the docs on how to specify perms: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
The text was updated successfully, but these errors were encountered: