Skip to content

Commit 78c6475

Browse files
committed
lint-and-test/codeql-analysis: Limit GitHub token workflow permissions.
1 parent a154b87 commit 78c6475

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/codeql-analysis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,16 @@ concurrency:
1414
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1515
cancel-in-progress: true
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
analyse:
1922
name: Analyse
23+
permissions:
24+
actions: read
25+
contents: read
26+
security-events: write
2027
runs-on: ubuntu-latest
2128

2229
steps:

.github/workflows/lint-and-test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1414
cancel-in-progress: true
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
mypy:
1821
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)