Skip to content

Commit bd91280

Browse files
author
Scott Straughan
committed
Added top level read only to codeql.yml
1 parent 4ff807a commit bd91280

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,19 @@ on:
88
schedule:
99
- cron: '31 11 * * 2'
1010

11+
permissions: read-all
12+
1113
jobs:
1214
analyze:
1315
name: Analyze (${{ matrix.language }})
1416
runs-on: 'ubuntu-latest'
1517
timeout-minutes: 360
1618
permissions:
17-
# required for all workflows
19+
contents: read
1820
security-events: write
19-
20-
# required to fetch internal or private CodeQL packs
21+
pull-requests: read
2122
packages: read
2223

23-
# only required for workflows in private repositories
24-
actions: read
25-
contents: read
26-
2724
strategy:
2825
fail-fast: false
2926
matrix:

0 commit comments

Comments
 (0)