Skip to content

Commit f702e80

Browse files
committed
ci: scope release.yml contents:write to the publish job
Workflow-level contents:write granted a write-capable token to every job. Default to read-only and grant write only to the publish job that uploads the release. (CodeRabbit)
1 parent 06d00f8 commit f702e80

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
MDVPN_COMMIT: d481d72d4b86783a87d536c214d2c68cc4e9320e
1616
NAIVE_VERSION: v149.0.7827.114-1
1717
permissions:
18-
contents: write
18+
contents: read
1919
jobs:
2020
libcore:
2121
name: Native Build (LibCore)
@@ -137,6 +137,8 @@ jobs:
137137
name: Publish Release
138138
if: github.event.inputs.publish != 'y'
139139
runs-on: namespace-profile-nekoyay
140+
permissions:
141+
contents: write
140142
needs: build
141143
steps:
142144
- name: Checkout

0 commit comments

Comments
 (0)