Skip to content

Commit

Permalink
assign packages write permission only on pushing version tags
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed May 5, 2024
1 parent f694c1b commit 5a0a8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
docker:
name: Docker
permissions:
packages: write
packages: ${{ startsWith(github.ref, 'refs/tags/v') && 'write' || 'none' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down

0 comments on commit 5a0a8d6

Please sign in to comment.