Fix the token permissions for private copies of the CodeQL Action, and for runs that are not from pull requests.

This commit is contained in:
Chris Gavin
2021-04-30 13:42:00 +01:00
parent 643bc6e3ed
commit e305db89c2

View File

@@ -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