Skip to content

Commit

Permalink
ci: restrict GITHUB_TOKEN permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Rifa Achrinza <[email protected]>
  • Loading branch information
achrinza committed Sep 11, 2021
1 parent 06df99f commit ebc54c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- 5.x

permissions: {}

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -64,6 +66,9 @@ jobs:
codeql:
name: CodeQL
runs-on: ubuntu-latest
permissions:
# See: https://github.com/github/codeql-action/blob/008b2cc71c4cf3401f45919d8eede44a65b4a322/README.md#usage
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -75,4 +80,4 @@ jobs:
config-file: ./.github/codeql/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v1

0 comments on commit ebc54c8

Please sign in to comment.