Skip to content

Commit

Permalink
Adjust job permissions so releaser can create a release
Browse files Browse the repository at this point in the history
  • Loading branch information
rgalanakis committed Jan 9, 2024
1 parent 22613d8 commit acb64d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- '*'

permissions:
contents: write # Needed to create a release

jobs:
goreleaser:
runs-on: macos-latest
Expand All @@ -30,7 +33,7 @@ jobs:
version: latest
args: --debug release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_TOKEN_ROBG_PAT }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needs write access to webhookdb-cli contents
TAP_GITHUB_TOKEN: ${{ secrets.BREWTAPS_GITHUB_TOKEN }} # Needs write access to homebrew-webhookdb contents (and PRs?)
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} # Needs write access to S3
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit acb64d0

Please sign in to comment.