Skip to content

Commit 71ef086

Browse files
committed
fix docker push permissions
1 parent cdaaacc commit 71ef086

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ on:
77
- master
88
pull_request: {}
99

10-
concurrency:
10+
concurrency:
1111
group: ${{ format('{0}/{1}', github.repository_owner, github.ref) }}
1212
cancel-in-progress: true
1313

14+
permissions:
15+
contents: read
16+
packages: write
17+
1418
jobs:
1519
lint:
1620
name: Lint
@@ -45,7 +49,7 @@ jobs:
4549
uses: docker/login-action@v3
4650
with:
4751
registry: ghcr.io
48-
username: ${{ github.repository_owner }}
52+
username: ${{ github.actor }}
4953
password: ${{ secrets.GITHUB_TOKEN }}
5054
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
5155

0 commit comments

Comments
 (0)