Skip to content

Commit c74d0e9

Browse files
committed
add missing top-level token permissions to workflows
Signed-off-by: Timothy Lee <[email protected]>
1 parent f815119 commit c74d0e9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ on:
2020
schedule:
2121
- cron: '17 19 * * 5'
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
analyze:
2528
name: Analyze
2629
runs-on: ubuntu-latest
2730
permissions:
2831
actions: read
29-
contents: read
3032
security-events: write
3133

3234
strategy:

.github/workflows/docker-image.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013

1114
build:

0 commit comments

Comments
 (0)