Skip to content

Commit e1655b6

Browse files
authored
Merge pull request #551 from souleb/token-permissions
Add Permissions to github Workflows
2 parents d1ab4d7 + 53fa1f9 commit e1655b6

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/e2e.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read # for actions/checkout to fetch code
11+
912
jobs:
1013

1114
kind-linux-amd64:

.github/workflows/nightly.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
env:
88
REPOSITORY: ${{ github.repository }}
99

10+
permissions:
11+
contents: read # for actions/checkout to fetch code
12+
1013
jobs:
1114
build:
1215
runs-on: ubuntu-latest

.github/workflows/scan.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
schedule:
99
- cron: '18 10 * * 3'
1010

11+
permissions:
12+
contents: read # for actions/checkout to fetch code
13+
security-events: write # for codeQL to write security events
14+
1115
jobs:
1216
fossa:
1317
name: FOSSA

0 commit comments

Comments
 (0)