Merge pull request #5798 from boahc077/github_actions_token_permission

ci: add minimum GitHub token permissions for workflows
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-10-04 11:05:07 +09:00
committed by GitHub
5 changed files with 22 additions and 0 deletions
+3
View File
@@ -2,6 +2,9 @@ name: Build & Test
on: [push, pull_request]
permissions:
contents: read
jobs:
Ubuntu-1804-gcc:
runs-on: ubuntu-18.04
+7
View File
@@ -8,8 +8,15 @@ on:
schedule:
- cron: '0 19 * * 4'
permissions:
contents: read
jobs:
CodeQL-Build:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
runs-on: ubuntu-latest
steps:
- name: Checkout repository
+3
View File
@@ -2,6 +2,9 @@ name: Lint
on: [pull_request]
permissions:
contents: read
jobs:
misspell:
name: Check spelling with misspell
+3
View File
@@ -1,5 +1,8 @@
name: CIFuzz
on: [pull_request]
permissions:
contents: read
jobs:
Fuzzing:
runs-on: ubuntu-latest
+6
View File
@@ -2,8 +2,14 @@ name: Super-Linter
on: [pull_request]
permissions:
contents: read
jobs:
build:
permissions:
contents: read # for actions/checkout to fetch code
statuses: write # for github/super-linter/slim to mark status of each linter run
name: Lint Code Base
runs-on: ubuntu-latest
steps: