Skip to content

Commit bd033ba

Browse files
cuioss-oliverclaude
andcommitted
fix: move contents:write to job-level in release workflow
Move the contents: write permission from top-level to job-level per OpenSSF Scorecard recommendation for least-privilege token permissions. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 73be2aa commit bd033ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ on:
99
workflow_dispatch:
1010

1111
permissions:
12-
contents: write
12+
contents: read
1313

1414
jobs:
1515
release:
16+
permissions:
17+
contents: write
1618
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
1719
uses: cuioss/cuioss-organization/.github/workflows/reusable-maven-release.yml@5b7f2938bc31b110554c8ef5b6d38659d225f096 # main
1820
secrets:

0 commit comments

Comments
 (0)