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 5aa2d71 commit 9a58695
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
schedule:
- cron: '0 2 * * 1' # At 02:00 on Monday

permissions: {}

jobs:
test:
name: Test
Expand Down Expand Up @@ -102,6 +104,11 @@ 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 Down

0 comments on commit 9a58695

Please sign in to comment.