Skip to content

Commit 53b1d14

Browse files
authored
[FAST_BUILD] add explicit permissions to all workflows (#2326)
1 parent 3dffd55 commit 53b1d14

9 files changed

+29
-0
lines changed

.github/workflows/contributed-recipes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ on:
3030
required: true
3131
type: boolean
3232

33+
permissions:
34+
contents: read
35+
3336
jobs:
3437
generate-matrix:
3538
runs-on: ubuntu-24.04

.github/workflows/docker-build-test-upload.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ on:
3838
required: true
3939
type: number
4040

41+
permissions:
42+
contents: read
43+
4144
jobs:
4245
build-test-upload:
4346
runs-on: ${{ inputs.runs-on }}

.github/workflows/docker-tag-push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
REGISTRY_TOKEN:
2727
required: true
2828

29+
permissions:
30+
contents: read
31+
2932
jobs:
3033
tag-push:
3134
runs-on: ubuntu-24.04

.github/workflows/docker-wiki-update.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ env:
88
on:
99
workflow_call:
1010

11+
permissions:
12+
contents: write
13+
1114
jobs:
1215
wiki-update:
1316
runs-on: ubuntu-24.04

.github/workflows/docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ concurrency:
6161
group: ${{ github.workflow }}-${{ github.ref }}
6262
cancel-in-progress: true
6363

64+
permissions:
65+
contents: read
66+
6467
jobs:
6568
aarch64-foundation:
6669
uses: ./.github/workflows/docker-build-test-upload.yml
@@ -437,3 +440,5 @@ jobs:
437440
uses: ./.github/workflows/docker-wiki-update.yml
438441
needs: tag-push-fast
439442
if: contains(github.event.pull_request.title, '[FAST_BUILD]')
443+
permissions:
444+
contents: write

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- main
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
run-hooks:
1215
runs-on: ubuntu-24.04

.github/workflows/registry-move.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- ".github/workflows/registry-move.yml"
1616
workflow_dispatch:
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
registry-move:
2023
# To be able to use the latest skopeo

.github/workflows/registry-overviews.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- "images/*/README.md"
1414
workflow_dispatch:
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
update-overview:
1821
runs-on: ubuntu-24.04

.github/workflows/sphinx.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ on:
3838
- "tagging/taggers/tagger_interface.py"
3939
workflow_dispatch:
4040

41+
permissions:
42+
contents: read
43+
4144
jobs:
4245
build-docs:
4346
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)