fix(ci): add packages:write permission for container registry push
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 3m17s
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 3m17s
The GITHUB_TOKEN auto-generated by Forgejo Actions requires explicit packages:write scope to authenticate with the Forgejo container registry. Without this, docker/login-action fails with a 401/403, which caused all builds to fail within ~30 seconds at the login step. Also adds contents:read as a best-practice minimal-privilege declaration.
This commit is contained in:
parent
65cafdc436
commit
db267ddb8e
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@ on:
|
|||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
Loading…
Reference in a new issue