From 02ffc098663354303d3bef37e626c997cf929e06 Mon Sep 17 00:00:00 2001 From: Fritz Lin Date: Mon, 22 Jan 2024 08:23:48 +0800 Subject: [PATCH] Attempt to solve write access as a PR workflow from forks https://github.com/marketplace/actions/git-auto-commit#use-in-forks-from-public-repositories --- .github/workflows/unit-test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index ec11e58..cfc44fb 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -3,7 +3,7 @@ name: unit test on: push: branches: [master, ci/**] - pull_request: + pull_request_target: branches: [master, ci/**] workflow_dispatch: # Keep this to allow for triggering manually @@ -23,6 +23,9 @@ jobs: runs-on: ${{ matrix.os }} + permissions: + contents: write + steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }}