From 8b4a2dd840c191cf6714f26f51815db3b7d05576 Mon Sep 17 00:00:00 2001 From: LY <51789698+Young-Lord@users.noreply.github.com> Date: Mon, 1 Jan 2024 15:11:13 +0800 Subject: [PATCH] ci: fix: `/fast-forward` triggered by non-maintainers --- .github/workflows/fast-forward.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fast-forward.yml b/.github/workflows/fast-forward.yml index bdf062a..ec7f833 100644 --- a/.github/workflows/fast-forward.yml +++ b/.github/workflows/fast-forward.yml @@ -25,7 +25,10 @@ jobs: require: write - name: Fast forwarding - if: steps.check-perm.outputs.require-result + if: steps.check-perm.outputs.require-result == 'true' + # As GitHub actions use actor's permission, it's not possible + # for anyone without write permission to perform a merge. + # This check is merely for skipping it silently. uses: sequoia-pgp/fast-forward@v1 with: merge: true