ask for escalated privileges in push workflows

This commit is contained in:
Lincoln Stein 2023-03-25 15:22:25 -04:00
parent 9344687a56
commit 17d8bbf330
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,9 @@ on:
- 'v*.*.*'
workflow_dispatch:
permissions:
contents: write
jobs:
docker:
if: github.event.pull_request.draft == false

View File

@ -5,6 +5,9 @@ on:
- 'main'
- 'development'
permissions:
contents: write
jobs:
mkdocs-material:
if: github.event.pull_request.draft == false
@ -34,8 +37,6 @@ jobs:
- name: deploy to gh-pages
if: ${{ github.ref == 'refs/heads/main' }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run: |
python -m \
mkdocs gh-deploy \