Skip to content

Commit

Permalink
Use proper permissions in the release and pre-release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Sep 9, 2024
1 parent a662f36 commit 5cb0402
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ jobs:
name: Create a GitHub prerelease with the binary artifacts
runs-on: ubuntu-latest
needs: ["build", "build-alpine"]
permissions:
contents: write

steps:
- uses: actions/download-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: ['build', 'build-alpine']
permissions:
contents: write

steps:
- uses: actions/download-artifact@v4
Expand Down

0 comments on commit 5cb0402

Please sign in to comment.