Skip to content

Commit ca1a34b

Browse files
authored
chore: adjust gha permissions and remove unused workflows (#93)
adjust gha permissions and remove unused workflows Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
1 parent 6bd35dc commit ca1a34b

7 files changed

Lines changed: 19 additions & 77 deletions

File tree

.github/workflows/actionlint.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/actionlint.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/codespell.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
default: './**/*.y*ml ./**/*.go'
1313
type: string
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
codespell:
1720
name: codespell

.github/workflows/markdown.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/safe-settings.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
paths:
1010
- safe-settings/**
1111
- .github/workflows/safe-settings.yml
12+
13+
# safe-settings authenticates via the OCMBOT GitHub App (APP_ID/PRIVATE_KEY),
14+
# so GITHUB_TOKEN only needs read access for checkout.
15+
permissions:
16+
contents: read
17+
1218
jobs:
1319
safeSettingsSync:
1420
name: synchronize settings

.github/workflows/stale.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ on:
1818
default: 'lifecycle/stale'
1919
type: string
2020

21-
permissions:
22-
contents: read # only for delete-branch option we would need write
23-
issues: write
24-
pull-requests: write
21+
permissions: {}
22+
2523
jobs:
2624
stale:
2725
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read # only for delete-branch option we would need write
28+
issues: write
29+
pull-requests: write
2830
steps:
2931
- uses: actions/stale@v9
3032
with:

.github/workflows/validation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ on:
44
types:
55
- opened
66

7-
permissions:
8-
issues: write
7+
permissions: {}
8+
99
jobs:
1010
add-labels:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
1214
steps:
1315
- name: Add default Labels to new issues
1416
uses: actions/github-script@v7

0 commit comments

Comments
 (0)