Skip to content

Commit 419abe7

Browse files
committed
Actions Security
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent c0d1ec1 commit 419abe7

13 files changed

Lines changed: 38 additions & 7 deletions

.github/workflows/blossom-ci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@ on:
1313
required: false
1414

1515
permissions:
16-
actions: write
17-
checks: write
18-
contents: write
19-
issues: write
20-
pull-requests: write
21-
repository-projects: write
22-
statuses: write
16+
contents: read
17+
pull-request: read
2318

2419
jobs:
2520
Authorization:

.github/workflows/build_docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- main
1313
- releasing/*
1414

15+
permissions:
16+
contents: read
17+
1518
concurrency:
1619
# automatically cancel the previously triggered workflows when there's a newer version
1720
group: build-docs-${{ github.event.pull_request.number || github.ref }}

.github/workflows/chatops.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# triggering the workflows by commenting `/black` and `/integration-test`
22
name: chatops
33

4+
permissions:
5+
contents: read
6+
47
# currently dispatches /black command to project-monai/monai-code-formatter
58
on:
69
issue_comment:

.github/workflows/cicd_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
- '**.rst'
2222
- 'docs/**'
2323

24+
permissions:
25+
contents: read
26+
2427
concurrency:
2528
# automatically cancel the previously triggered workflows when there's a newer version
2629
group: cicd-tests-${{ github.event.pull_request.number || github.ref }}

.github/workflows/conda.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
concurrency:
1114
# automatically cancel the previously triggered workflows when there's a newer version
1215
group: conda-tests-${{ github.event.pull_request.number || github.ref }}

.github/workflows/cron-ngc-bundle.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
concurrency:
1114
# automatically cancel the previously triggered workflows when there's a newer version
1215
group: bundle-tests-${{ github.event.pull_request.number || github.ref }}

.github/workflows/cron.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
cron-gpu:
1215
if: github.repository == 'Project-MONAI/MONAI'

.github/workflows/docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
# This is to trigger building/testing docker image from dev only.
1414
workflow_dispatch:
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
versioning_dev:
1821
# compute versioning file from python setup.py

.github/workflows/integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
repository_dispatch:
66
type: [integration-test-command]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
integration-auto3dseg:
1013
container:

.github/workflows/pythonapp-gpu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:
1414

15+
permissions:
16+
contents: read
17+
1518
concurrency:
1619
# automatically cancel the previously triggered workflows when there's a newer version
1720
group: build-gpu-${{ github.event.pull_request.number || github.ref }}

0 commit comments

Comments
 (0)