Skip to content

Commit

Permalink
fix docker push permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Sep 23, 2024
1 parent cdaaacc commit 71ef086
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'

Expand Down

0 comments on commit 71ef086

Please sign in to comment.