ci: set explicit token permissions (#3225)

This commit is contained in:
Travis Groth 2022-03-31 17:15:38 -04:00 committed by GitHub
parent f3dd0b8fc9
commit da159fe65b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,6 @@
name: Backport
permissions:
contents: read
on:
pull_request_target:
types:

View file

@ -1,4 +1,6 @@
name: Docker Main
permissions:
contents: read
on:
push:
branches:

View file

@ -1,4 +1,6 @@
name: Release
permissions:
contents: read
on:
release:
@ -7,6 +9,10 @@ on:
jobs:
goreleaser:
permissions:
contents: write
issues: read
pull-requests: read
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"

View file

@ -1,10 +1,12 @@
name: Test
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
name: Test
jobs:
test:
strategy: