mirror of
https://github.com/github/codeql-action
synced 2026-12-04 13:59:31 +08:00
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:
1 file changed
+3
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user