Skip to content

Commit 53fa1f9

Browse files
committed
Add Permissions to github Workflows
Imrove GITHUB_TOKEN permissions in the workflows. Signed-off-by: Soule BA <[email protected]>
1 parent d1ab4d7 commit 53fa1f9

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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)