Skip to content

Commit ef4ac19

Browse files
authored
Fix security issue on gorelease (#9)
1 parent caeb703 commit ef4ac19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
- "*"
88

99
permissions:
10-
contents: write
10+
contents: read
1111

1212
jobs:
1313
goreleaser:
14+
permissions:
15+
contents: write
1416
runs-on: ubuntu-latest
1517
steps:
1618
- name: Harden the runner (Audit all outbound calls)
@@ -35,4 +37,4 @@ jobs:
3537
version: "~> v2"
3638
args: release --clean
3739
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)