Merge pull request #551 from souleb/token-permissions

Add Permissions to github Workflows
This commit is contained in:
Stefan Prodan 2022-01-20 20:06:29 +02:00 committed by GitHub
commit e1655b6b47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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