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:
- main
permissions:
contents: read # for actions/checkout to fetch code
jobs:
kind-linux-amd64:

View File

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

View File

@ -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