docs(deployment): add permissions config to github action file in v2.4.3 (#9377)

This commit is contained in:
Dinh Bao Dang 2023-10-06 12:58:29 +02:00 committed by GitHub
parent e17784effa
commit df42d891c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,6 +390,9 @@ on:
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
permissions:
contents: write
jobs:
deploy:
name: Deploy to GitHub Pages
@ -488,6 +491,9 @@ on:
push:
branches: [main]
permissions:
contents: write
jobs:
test-deploy:
if: github.event_name != 'push'