Skip to content

Commit

Permalink
ci: Add GitHub token permissions for workflow (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed May 1, 2022
1 parent 348f1b0 commit 6d68b63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
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 6d68b63

Please sign in to comment.