Add Permissions to github Workflows

Imrove GITHUB_TOKEN permissions in the workflows.

Signed-off-by: Soule BA <soule@weave.works>
This commit is contained in:
Soule BA 2022-01-20 15:20:52 +01:00
parent d1ab4d7c8e
commit 53fa1f9e3e
No known key found for this signature in database
GPG Key ID: 4D40965192802994
3 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,9 @@ on:
branches: branches:
- main - main
permissions:
contents: read # for actions/checkout to fetch code
jobs: jobs:
kind-linux-amd64: kind-linux-amd64:

View File

@ -7,6 +7,9 @@ on:
env: env:
REPOSITORY: ${{ github.repository }} REPOSITORY: ${{ github.repository }}
permissions:
contents: read # for actions/checkout to fetch code
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -8,6 +8,10 @@ on:
schedule: schedule:
- cron: '18 10 * * 3' - cron: '18 10 * * 3'
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for codeQL to write security events
jobs: jobs:
fossa: fossa:
name: FOSSA name: FOSSA