Skip to content

Commit 00247c3

Browse files
authored
chore: add permissions section to workflow YAML files (#123)
1 parent 1c2e930 commit 00247c3

6 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/check-version-bump.yaml

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
check-version-bump:
1013
name: Enforce version bump when src/ is modified

.github/workflows/commit-validation.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
commit-validation:
1316
runs-on: ${{ contains(github.server_url, 'github.com') && 'ubuntu-latest' || fromJSON('["self-hosted"]') }}

.github/workflows/proto-verify.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- 'src/sap_cloud_sdk/core/auditlog_ng/proto/**'
1616
- 'Makefile'
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
verify-proto:
2023
name: Verify generated proto code is up-to-date

.github/workflows/release-internal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
types: [opened, synchronize, reopened]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
publish:
1114
name: Publish to Artifactory

.github/workflows/reuse.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- "main"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
check-reuse-compliance:
1316
runs-on: ${{ contains(github.server_url, 'github.com') && 'ubuntu-latest' || fromJSON('["self-hosted"]') }}

.github/workflows/sync.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: '0 */3 * * *'
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
sync:
1013
runs-on: ["self-hosted"]

0 commit comments

Comments
 (0)