Skip to content

Commit 2cd141d

Browse files
authored
fix(docker): add permissions GITHUB_TOKEN (#60)
1 parent 5432c88 commit 2cd141d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
publish-docker:
3030
name: Publish docker images
3131
runs-on: ubuntu-latest
32+
permissions:
33+
contents: read
34+
packages: write
3235
env:
3336
REGISTRY: ghcr.io
3437
IMAGE_NAME: ${{ github.repository }}
@@ -44,7 +47,7 @@ jobs:
4447
- name: Login to GitHub Packages
4548
uses: docker/login-action@v1
4649
with:
47-
registry: docker.pkg.github.com
50+
registry: ${{ env.REGISTRY }}
4851
username: ${{ github.actor }}
4952
password: ${{ secrets.GITHUB_TOKEN }}
5053
- name: Extract metadata (tags, labels) for Docker

0 commit comments

Comments
 (0)