Skip to content

Commit a7ea1a3

Browse files
J12934Reet00
authored andcommitted
Try to specify minimal pipeline permissions
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
1 parent f61b328 commit a7ea1a3

10 files changed

Lines changed: 38 additions & 3 deletions

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- v[0-9]+.x
1111
pull_request:
1212

13+
permissions:
14+
contents: read
15+
1316
# The CI runs on ubuntu-24.04; More info about the installed software is found here:
1417
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
1518

.github/workflows/documentation-roulette.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
schedule:
1010
- cron: "0 12 15 * *" # At 12:00 UTC on day-of-month 15
1111

12+
permissions:
13+
contents: read
14+
issues: write
15+
1216
jobs:
1317
docu-roulette:
1418
permissions:

.github/workflows/helm-charts-release-ghcr.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ on:
77
types: [published]
88

99
name: "Publish Helm Charts to GHCR"
10+
11+
permissions:
12+
contents: read
13+
packages: write
14+
1015
env:
1116
CONTAINER_REGISTRY: ghcr.io/securecodebox
1217
HELM_VERSION: "v3.12.2"
1318
jobs:
1419
GHCR-Helm-Release:
1520
name: "Publish Helm Charts to GHCR"
1621
runs-on: ubuntu-24.04
17-
permissions:
18-
contents: read
19-
packages: write
2022
steps:
2123
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
2224

.github/workflows/helm-charts-release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
release:
1010
types: [published]
1111
name: "Publish Helm Charts"
12+
13+
permissions:
14+
contents: read
15+
1216
jobs:
1317
helm:
1418
name: Package and Publish

.github/workflows/helm-docs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
push:
1212
branches:
1313
- main
14+
15+
permissions:
16+
contents: write
17+
1418
jobs:
1519
helm-docs:
1620
runs-on: ubuntu-24.04

.github/workflows/license-check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- v[0-9]+.x
1111
pull_request:
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
license-check:
1518
runs-on: ubuntu-24.04

.github/workflows/mega-linter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
pull_request:
1717
branches: [master, main]
1818

19+
permissions:
20+
contents: read
21+
1922
env: # Comment env block if you do not want to apply fixes
2023
# Apply linter fixes configuration
2124
APPLY_FIXES: none # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool)

.github/workflows/move-bot-pr-to-review.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
branches:
1010
- main
1111

12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
1216
jobs:
1317
move-bot-pr-to-review:
1418
runs-on: ubuntu-24.04

.github/workflows/release-build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
release:
1111
types: [published]
1212

13+
permissions:
14+
contents: read
15+
1316
env:
1417
# ---- Docker Namespace ----
1518

.github/workflows/scb-bot.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ name: Check outdated scanners
1818
on:
1919
schedule:
2020
- cron: "15 9 * * *" # Daily at 9:15 (avoids the beginning of the hour congestion)
21+
22+
permissions:
23+
contents: write
24+
pull-requests: write
25+
2126
jobs:
2227
version-compare:
2328
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)