Merge pull request #11285 from ashishkurmi/main

ci: add minimum GitHub token permissions for workflows
pull/12578/head
Julien Pivotto 2023-07-18 13:22:07 +02:00 committed by GitHub
commit e0502f00c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,6 +3,9 @@ name: Sync repo files
on: on:
schedule: schedule:
- cron: '44 17 * * *' - cron: '44 17 * * *'
permissions:
contents: read
jobs: jobs:
repo_sync: repo_sync:
runs-on: ubuntu-latest runs-on: ubuntu-latest