Constrain GH Actions workflows permissions (#129)

This commit is contained in:
Otto Winter 2021-10-23 21:57:46 +02:00 committed by GitHub
parent ca3a14b1bc
commit d052f59800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
ci:
name: ${{ matrix.name }}

View File

@ -9,6 +9,9 @@ on:
- requirements_test.txt
- .github/workflows/docker.yml
permissions:
contents: read
packages: write
jobs:
build-image:

View File

@ -6,6 +6,10 @@ on:
branches:
- main
permissions:
contents: write
pull-requests: read
jobs:
update_release_draft:
runs-on: ubuntu-latest

View File

@ -4,6 +4,9 @@ on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy-pypi:
name: Build and publish to PyPi