Fix permissions on Github Actions jobs (#7430)

Related: #7425
This commit is contained in:
jonathanmetzman 2022-03-23 16:09:50 -04:00 committed by GitHub
parent 037845574a
commit 1f8d89be68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,8 @@
name: Infra tests
permissions:
contents: read
on:
pull_request:
paths:
@ -8,7 +12,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.8.0

View File

@ -1,5 +1,8 @@
name: Presubmit checks
permissions:
contents: read
on:
pull_request:
branches:
@ -8,7 +11,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.8.0

View File

@ -1,5 +1,8 @@
name: Project tests
permissions:
contents: read
on:
pull_request:
branches:
@ -8,6 +11,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write
strategy:
fail-fast: false
matrix: