Skip to content

Commit

Permalink
fix permissions for publishing job
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlos Tzianos committed May 5, 2024
1 parent 53d566c commit 35ee8a4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@ on:

permissions:
# Grant the ability to checkout the repository
contents: read
contents: write
# Grant the ability to push packages
packages: write

jobs:
publish-docker-images:
name: Push Docker images
runs-on: ubuntu-latest
permissions:
# Grant the ability to write to GitHub Packages (push Docker images to
# GitHub Container Registry).
packages: write
# Grant the ability to checkout the repository.
contents: write
steps:
- name: Check out code
uses: actions/checkout@v2
Expand Down

0 comments on commit 35ee8a4

Please sign in to comment.