Skip to content

Commit be53db0

Browse files
authored
VLN-516: Set explicit permissions for GitHub Actions workflows (#159)
## Summary - `.github/workflows/helm.yml`: Added a workflow-level permissions block limiting the default GITHUB_TOKEN to contents: read since the jobs rely on a GitHub App token for pushes. - `.github/workflows/test-integration.yml`: Declared workflow-level permissions with contents: read to support checkout while preventing unnecessary token scopes for the integration/unit test jobs.
1 parent 14322c6 commit be53db0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/helm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- minor
1414
- major
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
release:
1821
runs-on: ubuntu-latest

.github/workflows/test-integration.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [ main ]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
skaffold-build:
1013
name: Test Skaffold Build
@@ -146,4 +149,4 @@ jobs:
146149
run: go mod download
147150

148151
- name: Run go vet
149-
run: go vet ./...
152+
run: go vet ./...

0 commit comments

Comments
 (0)