Skip to content

Commit

Permalink
ci: Bind permissions as tight as possible.
Browse files Browse the repository at this point in the history
Move the `goreleaser` permissions directly onto the job rather than the whole
workflow, as #771 is going to add a second job with different requirements.
  • Loading branch information
jaqx0r committed Jan 7, 2024
1 parent e888bb5 commit 49d0a54
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -6,13 +6,12 @@ on:
tags:
- v*

permissions:
# goreleaser writes to the releases api
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
# goreleaser writes to the releases api
contents: write
env:
flags: ""
steps:
Expand Down

0 comments on commit 49d0a54

Please sign in to comment.