Skip to content

Commit 4ab0b6d

Browse files
committed
ci: use actions' token
GHA provides a token itself, we don't need to generate one. This is more-fine grained, easier to change if needed, and more secure. I think the existing `contents: read` is sufficient, but it might not be. We'll see.
1 parent f9a57e4 commit 4ab0b6d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,5 @@ jobs:
9494

9595
- name: Run tests
9696
run: npm test
97+
env:
98+
AUTH_GITHUB: ${{ secrets.GITHUB_TOKEN }}

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://turbo.build/schema.json",
33
"globalEnv": ["NO_COLOR", "LOCAL_ELM_REVIEW_SRC", "ELM_HOME"],
4-
"globalPassThroughEnv": ["GITHUB_TOKEN", "AUTH_GITHUB"],
4+
"globalPassThroughEnv": ["AUTH_GITHUB"],
55
"tasks": {
66
"elm-format": {
77
"inputs": [

0 commit comments

Comments
 (0)