Skip to content

Commit ef61750

Browse files
committed
fix: resolve zizmor excessive-permissions + artipacked (INFRA-869)
least-privilege permissions: contents: read on ci + release-sonatype (Sonatype publishing uses PGP/Sonatype creds, not GITHUB_TOKEN); persist-credentials: false on checkouts (no git pushes). Deferred (INFRA-869 cross-cutting decisions): unpinned-uses (pin-vs-wrap pending). Verified with the org zizmor config: 0 findings outside the deferred set. INFRA-869
1 parent 10eddf8 commit ef61750

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ on:
77
branches:
88
- master
99
workflow_dispatch:
10+
permissions:
11+
contents: read
1012
jobs:
1113
build:
1214
runs-on: ubuntu-latest
1315
steps:
1416
- uses: actions/checkout@v6
17+
with:
18+
persist-credentials: false
1519
- uses: actions/setup-java@v4
1620
with:
1721
java-version: 11

‎.github/workflows/release-sonatype.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- 'v*'
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
release-sonatype:
1114
runs-on: ubuntu-latest
@@ -14,6 +17,7 @@ jobs:
1417
with:
1518
# We need to unshallow to allow git describe work with last tag
1619
fetch-depth: 0
20+
persist-credentials: false
1721
- uses: actions/setup-java@v4
1822
with:
1923
java-version: 11

0 commit comments

Comments
 (0)