Skip to content

Commit b87077e

Browse files
committed
ci: set GITHUB_ACCESS_TOKEN to temporary read only token
1 parent 4176ecd commit b87077e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ jobs:
4444
tests:
4545
runs-on: ubuntu-20.04
4646
timeout-minutes: 10
47+
48+
permissions:
49+
contents: read
50+
env:
51+
GITHUB_ACCESS_TOKEN: "${{ secrets.github_token }}"
52+
4753
strategy:
4854
# keep running so we can see if tests with other k3s/k8s/helm versions pass
4955
fail-fast: false
@@ -345,6 +351,12 @@ jobs:
345351
test-local:
346352
runs-on: ubuntu-20.04
347353
timeout-minutes: 5
354+
355+
permissions:
356+
contents: read
357+
env:
358+
GITHUB_ACCESS_TOKEN: "${{ secrets.github_token }}"
359+
348360
steps:
349361
- uses: actions/checkout@v3
350362

0 commit comments

Comments
 (0)