Skip to content

Commit 36c40b2

Browse files
authored
security(actions): declare least-privilege permissions on remaining workflows (#1399)
1 parent 51267f3 commit 36c40b2

7 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/cleanup-eu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
workflows: [Non Regression Testing (EU)]
66
types: [completed]
77

8+
permissions:
9+
contents: read
10+
811
env:
912
workflow_run_id: ${{ github.event.workflow_run.id }}
1013
config_name: gitusdkreu${{ github.event.workflow_run.id }}.json

.github/workflows/cleanup.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
workflows: [Non Regression Testing]
66
types: [completed]
77

8+
permissions:
9+
contents: read
10+
811
env:
912
workflow_run_id: ${{ github.event.workflow_run.id }}
1013
config_name: gitusdkr${{ github.event.workflow_run.id }}.json

.github/workflows/local-repo-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
limit_main_pr:
1013
runs-on: ubuntu-latest

.github/workflows/nonregression-dp.yml

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

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
log-context:
1215
runs-on: ubuntu-latest

.github/workflows/nonregression-eu-dp.yml

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

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
log-context:
1215
runs-on: ubuntu-latest

.github/workflows/smoke-eu-dp.yml

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

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
log-context:
1215
runs-on: ubuntu-latest

.github/workflows/smoke-eu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches: [main]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
log-context:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)