Skip to content

Commit

Permalink
ci: Add GitHub token permissions for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Apr 12, 2022
1 parent 576ba74 commit 41338b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -6,6 +6,9 @@ on:
- "dependabot/**"
pull_request:

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -25,6 +28,10 @@ jobs:
run: npm run lint

build:
permissions:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
runs-on: ${{ matrix.os }}
needs: lint
strategy:
Expand Down

0 comments on commit 41338b9

Please sign in to comment.