Skip to content

Commit

Permalink
give perms only to the publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 21, 2023
1 parent 7fb6ad6 commit 64517d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ env:
DOCKERFILE: Dockerfile
DOCKERHUB_USERNAME: humbugphp

permissions:
contents: write

jobs:
build-phar:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -85,6 +82,8 @@ jobs:
needs:
- 'build-phar'
if: github.event_name == 'release'
permissions:
contents: write
steps:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 64517d1

Please sign in to comment.