Skip to content

Commit 194afa2

Browse files
authored
Merge pull request #724 from mcserep/codeql-toplevel-permission
Move CodeQL workflow permissions to the top level
2 parents fe1b8fb + b004bcc commit 194afa2

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ on:
88
schedule:
99
- cron: '22 16 * * 5'
1010

11+
permissions:
12+
# required for all workflows
13+
security-events: write
14+
# only required for workflows in private repositories
15+
actions: read
16+
contents: read
17+
1118
jobs:
1219
analyze-jsts:
1320
name: Analyze JavaScript-TypeScript
1421
runs-on: ubuntu-22.04
1522
timeout-minutes: 360
16-
permissions:
17-
# required for all workflows
18-
security-events: write
19-
# only required for workflows in private repositories
20-
actions: read
21-
contents: read
2223

2324
steps:
2425
- name: Checkout repository
@@ -45,12 +46,6 @@ jobs:
4546
DOWNLOAD_PATH: ${{github.workspace}}/dependencies/download
4647
runs-on: ubuntu-22.04
4748
timeout-minutes: 360
48-
permissions:
49-
# required for all workflows
50-
security-events: write
51-
# only required for workflows in private repositories
52-
actions: read
53-
contents: read
5449

5550
steps:
5651
- name: Checkout repository

0 commit comments

Comments
 (0)