From 71ef0866bf506165f7f5fc1894fa9b1cf0e44ecd Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Sun, 22 Sep 2024 09:41:41 +0200 Subject: [PATCH] fix docker push permissions --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f6b1fc..277adeb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,10 +7,14 @@ on: - master pull_request: {} -concurrency: +concurrency: group: ${{ format('{0}/{1}', github.repository_owner, github.ref) }} cancel-in-progress: true +permissions: + contents: read + packages: write + jobs: lint: name: Lint @@ -45,7 +49,7 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: ${{ github.repository_owner }} + username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} if: github.event_name == 'push' && github.ref == 'refs/heads/master'