From 6d68b63aecd37d98f836d29d2089010e30c3e3d3 Mon Sep 17 00:00:00 2001 From: Varun Sharma Date: Sun, 1 May 2022 16:15:50 -0700 Subject: ci: Add GitHub token permissions for workflow (#1829) --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b32ea4..34755fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: - "dependabot/**" pull_request: +permissions: + contents: read + jobs: lint: runs-on: ubuntu-latest @@ -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: -- cgit v1.2.1