Skip to content

Commit 6d68b63

Browse files
ci: Add GitHub token permissions for workflow (#1829)
1 parent 348f1b0 commit 6d68b63

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- "dependabot/**"
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
lint:
1114
runs-on: ubuntu-latest
@@ -25,6 +28,10 @@ jobs:
2528
run: npm run lint
2629

2730
build:
31+
permissions:
32+
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
33+
checks: write # for coverallsapp/github-action to create new checks
34+
contents: read # for actions/checkout to fetch code
2835
runs-on: ${{ matrix.os }}
2936
needs: lint
3037
strategy:

0 commit comments

Comments
 (0)