Skip to content

Commit 30f9ad0

Browse files
add explicit permissions to GitHub Actions workflows (#130)
1 parent 04477b3 commit 30f9ad0

13 files changed

+52
-0
lines changed

.github/workflows/build_scan_container.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
branches: #
1313
- '*'
1414

15+
permissions:
16+
contents: read
17+
id-token: write
18+
actions: write # For uploading artifacts
19+
1520
jobs:
1621
build:
1722
name: Build docker image

.github/workflows/example_display_findings.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches: #
99
- '*'
1010

11+
permissions:
12+
contents: read
13+
id-token: write
14+
1115
jobs:
1216
daily_job:
1317
runs-on: ubuntu-latest

.github/workflows/run_unit_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: #
88
- '*'
99

10+
permissions:
11+
contents: read
12+
id-token: write
13+
1014
jobs:
1115
build:
1216
runs-on: ubuntu-latest

.github/workflows/scan_repo_with_semgrep.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Semgrep Scan
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
semgrep:
710
runs-on: ubuntu-latest

.github/workflows/test_archive.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
branches: #
1212
- '*'
1313

14+
permissions:
15+
contents: read
16+
id-token: write
17+
1418
jobs:
1519
daily_job:
1620
runs-on: ubuntu-latest

.github/workflows/test_binary.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
branches: #
1212
- '*'
1313

14+
permissions:
15+
contents: read
16+
id-token: write
17+
1418
jobs:
1519
daily_job:
1620
runs-on: ubuntu-latest

.github/workflows/test_containers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
branches: #
1212
- '*'
1313

14+
permissions:
15+
contents: read
16+
id-token: write
17+
1418
jobs:
1519
daily_job:
1620
runs-on: ubuntu-latest

.github/workflows/test_dockerfile_vulns.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
branches: #
1212
- '*'
1313

14+
permissions:
15+
contents: read
16+
id-token: write
17+
1418
jobs:
1519
daily_job:
1620
runs-on: ubuntu-latest

.github/workflows/test_installation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
branches:
1212
- '*'
1313

14+
permissions:
15+
contents: read
16+
id-token: write
17+
1418
jobs:
1519
daily_job:
1620
runs-on: ubuntu-latest

.github/workflows/test_no_vulns.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: #
88
- '*'
99

10+
permissions:
11+
contents: read
12+
id-token: write
13+
1014
jobs:
1115
daily_job:
1216
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)