Skip to content

Commit 1aa05ce

Browse files
authored
Merge pull request #20333 from Michael-Gardner/HPCC-34812
HPCC-34812 Explicit write permissions in github actions
2 parents 50dc1bd + 2634afa commit 1aa05ce

4 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build-assets.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ jobs:
9999
build-docker-community:
100100
name: Build Docker Community
101101
needs: preamble
102+
permissions:
103+
contents: write
104+
actions: write
102105
strategy:
103106
matrix:
104107
os: [ ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, rockylinux-8 ]
@@ -124,6 +127,9 @@ jobs:
124127
build-docker-internal:
125128
name: Build Docker Internal
126129
needs: preamble
130+
permissions:
131+
contents: read
132+
actions: write
127133
strategy:
128134
matrix:
129135
os: [ ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, rockylinux-8, centos-7 ]
@@ -150,6 +156,9 @@ jobs:
150156
build-docker-enterprise:
151157
name: Build Docker Enterprise
152158
needs: preamble
159+
permissions:
160+
contents: read
161+
actions: write
153162
strategy:
154163
matrix:
155164
os: [ ubuntu-24.04, ubuntu-22.04 ]
@@ -162,6 +171,9 @@ jobs:
162171

163172
build-documentation:
164173
needs: preamble
174+
permissions:
175+
contents: write
176+
actions: write
165177
uses: ./.github/workflows/build-documentation.yml
166178
with:
167179
community-ref: ${{ needs.preamble.outputs.community_ref }}
@@ -176,6 +188,9 @@ jobs:
176188

177189
build-clienttools-community-macos:
178190
needs: preamble
191+
permissions:
192+
contents: write
193+
actions: write
179194
uses: ./.github/workflows/build-clienttools-macos-13.yml
180195
with:
181196
community-ref: ${{ needs.preamble.outputs.community_ref }}
@@ -184,6 +199,9 @@ jobs:
184199

185200
build-clienttools-internal-macos:
186201
needs: preamble
202+
permissions:
203+
contents: read
204+
actions: write
187205
uses: ./.github/workflows/build-clienttools-macos-13.yml
188206
with:
189207
community-ref: ${{ needs.preamble.outputs.community_ref }}
@@ -193,6 +211,9 @@ jobs:
193211

194212
build-clienttools-community-windows:
195213
needs: preamble
214+
permissions:
215+
contents: write
216+
actions: write
196217
uses: ./.github/workflows/build-clienttools-windows-2022.yml
197218
with:
198219
community-ref: ${{ needs.preamble.outputs.community_ref }}
@@ -203,6 +224,9 @@ jobs:
203224

204225
build-clienttools-internal-windows:
205226
needs: preamble
227+
permissions:
228+
contents: read
229+
actions: write
206230
uses: ./.github/workflows/build-clienttools-windows-2022.yml
207231
with:
208232
community-ref: ${{ needs.preamble.outputs.community_ref }}
@@ -212,6 +236,9 @@ jobs:
212236

213237
build-bare-metal-eclide:
214238
needs: [ preamble, build-clienttools-community-windows, build-documentation ]
239+
permissions:
240+
contents: write
241+
actions: write
215242
uses: ./.github/workflows/build-eclide.yml
216243
with:
217244
community-ref: ${{ needs.preamble.outputs.community_ref }}
@@ -223,6 +250,8 @@ jobs:
223250

224251
changelogs:
225252
needs: preamble
253+
permissions:
254+
contents: write
226255
uses: ./.github/workflows/build-changelogs.yml
227256
with:
228257
current-version: ${{ needs.preamble.outputs.hpcc_version_full }}

.github/workflows/build-changelogs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
name: Generate Changelogs
3434
runs-on: ubuntu-latest
3535
if: ${{ github.repository_owner == 'hpcc-systems' }}
36+
permissions:
37+
contents: write
3638
steps:
3739
- name: Checkout HPCC-Platform
3840
uses: actions/checkout@v4

.github/workflows/build-vcpkg.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ concurrency:
4646
group: ${{ github.workflow }}-${{ github.ref }}
4747
cancel-in-progress: true
4848

49+
permissions:
50+
contents: read
51+
actions: write
52+
4953
jobs:
5054

5155
build-workflow-dispatch:

.github/workflows/test-documentation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
required: false
2828
default: 'Documentation'
2929

30+
permissions:
31+
contents: read
32+
actions: write
33+
3034
jobs:
3135
build-documentation:
3236
name: Build Documentation

0 commit comments

Comments
 (0)