From e305db89c2dc1e955b85c2834ce9248044bdfa32 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Fri, 30 Apr 2021 13:42:00 +0100 Subject: [PATCH] Fix the token permissions for private copies of the CodeQL Action, and for runs that are not from pull requests. --- .github/workflows/codeql.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index acd26f1d7..3050dabec 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,7 +14,9 @@ jobs: versions: ${{ steps.compare.outputs.versions }} permissions: + actions: read contents: read + security-events: write steps: - uses: actions/checkout@v2 @@ -63,6 +65,7 @@ jobs: runs-on: ${{ matrix.os }} permissions: + actions: read contents: read security-events: write