From 11da5cc8a961ad23e841a68f9672e2386dc22f4a Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Wed, 12 Jul 2023 10:35:18 +0000 Subject: [PATCH] fix: add write permission to GitHub actions --- .github/workflows/deploy.yml | 5 +++++ .github/workflows/update-theme.yml | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9d8dbff..644c9a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,6 +10,11 @@ jobs: build: 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: - uses: actions/checkout@v2 diff --git a/.github/workflows/update-theme.yml b/.github/workflows/update-theme.yml index 28e61d0..76b589b 100644 --- a/.github/workflows/update-theme.yml +++ b/.github/workflows/update-theme.yml @@ -9,9 +9,14 @@ on: workflow_dispatch: jobs: - build: + update-theme: 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: - uses: actions/checkout@v2