ci: tighten several GHActions a bit more

with https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#permissions
This commit is contained in:
Evgeny Vereshchagin
2021-11-13 14:40:20 +00:00
parent 76a7c636a9
commit 311956ccd9
7 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ on:
- 'src/**'
- 'test/fuzz/**'
permissions: read-all
jobs:
build:
runs-on: ubuntu-20.04

View File

@@ -4,6 +4,9 @@
# See: https://google.github.io/oss-fuzz/getting-started/continuous-integration/
name: CIFuzz
permissions: read-all
on:
pull_request:
paths:

View File

@@ -9,6 +9,8 @@ on:
# Run Coverity daily at midnight
- cron: '0 0 * * *'
permissions: read-all
jobs:
build:
runs-on: ubuntu-20.04

View File

@@ -7,6 +7,10 @@ name: "Pull Request Labeler"
on:
- pull_request_target
permissions:
contents: read
pull-requests: write
jobs:
triage:
runs-on: ubuntu-latest

View File

@@ -10,6 +10,8 @@ on:
- main
- v[0-9]+-stable
permissions: read-all
jobs:
build:
name: Lint Code Base

View File

@@ -14,6 +14,8 @@ on:
- main
- v[0-9]+-stable
permissions: read-all
jobs:
ci:
runs-on: ubuntu-20.04

View File

@@ -9,6 +9,8 @@ on:
- main
- v[0-9]+-stable
permissions: read-all
jobs:
build:
runs-on: ubuntu-20.04