Merge pull request #457 from github/restrict-permissions
Restrict Actions token permissions in CodeQL workflow.
This commit is contained in:
commit
33bb16c8b4
1 changed files with 10 additions and 0 deletions
10
.github/workflows/codeql.yml
vendored
10
.github/workflows/codeql.yml
vendored
|
|
@ -13,6 +13,11 @@ jobs:
|
|||
outputs:
|
||||
versions: ${{ steps.compare.outputs.versions }}
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Init with default CodeQL bundle from the VM image
|
||||
|
|
@ -59,6 +64,11 @@ jobs:
|
|||
tools: ${{ fromJson(needs.check-codeql-versions.outputs.versions) }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./init
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue