ci: add minimum GitHub token permissions for workflows

Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>
This commit is contained in:
Ashish Kurmi 2022-09-07 21:27:16 -07:00
parent 3cde9287a6
commit 00ba2f9a46
6 changed files with 18 additions and 0 deletions

View file

@ -4,6 +4,9 @@ on:
paths:
- ".github/workflows/buf-lint.yml"
- "**.proto"
permissions:
contents: read
jobs:
buf:
name: lint

View file

@ -3,6 +3,9 @@ on:
push:
branches:
- main
permissions:
contents: read
jobs:
buf:
name: lint and publish

View file

@ -6,6 +6,9 @@ on:
schedule:
- cron: "26 14 * * 1"
permissions:
contents: read
jobs:
analyze:
name: Analyze

View file

@ -2,6 +2,9 @@ on:
repository_dispatch:
types: [funcbench_start]
name: Funcbench Workflow
permissions:
contents: read
jobs:
run_funcbench:
name: Running funcbench

View file

@ -1,6 +1,9 @@
name: CIFuzz
on:
workflow_call:
permissions:
contents: read
jobs:
Fuzzing:
runs-on: ubuntu-latest

View file

@ -2,6 +2,9 @@
on:
schedule:
- cron: '44 17 * * *'
permissions:
contents: read
jobs:
repo_sync:
runs-on: ubuntu-latest