Skip to content

Commit

Permalink
Add Permissions to github Workflows
Browse files Browse the repository at this point in the history
Imrove GITHUB_TOKEN permissions in the workflows.

Signed-off-by: Soule BA <[email protected]>
  • Loading branch information
souleb committed Jan 20, 2022
1 parent d1ab4d7 commit 53fa1f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- main

permissions:
contents: read # for actions/checkout to fetch code

jobs:

kind-linux-amd64:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
env:
REPOSITORY: ${{ github.repository }}

permissions:
contents: read # for actions/checkout to fetch code

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
schedule:
- cron: '18 10 * * 3'

permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for codeQL to write security events

jobs:
fossa:
name: FOSSA
Expand Down

0 comments on commit 53fa1f9

Please sign in to comment.