fix: add write permission to GitHub actions

This commit is contained in:
Jimmy Cai 2023-07-12 10:35:18 +00:00
parent aa641d2716
commit 11da5cc8a9
2 changed files with 11 additions and 1 deletions

View File

@ -10,6 +10,11 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -9,9 +9,14 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: update-theme:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2