From dcf2a2500f668138f142b8d02a518b596f94bb3e Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 15 Mar 2026 18:39:25 -0500 Subject: [PATCH] fix: add access token to cancel-workflow-action (#36) The cancel-workflow-action requires an access_token to query and cancel running workflows. Without it, the action fails with 'Cannot read properties of undefined' error when trying to access workflow information. Reviewed-on: https://git.mcintire.me/graham/towerops-web/pulls/36 --- .forgejo/workflows/cancel-on-merge.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/cancel-on-merge.yaml b/.forgejo/workflows/cancel-on-merge.yaml index 8bd77ea8..16a07f6f 100644 --- a/.forgejo/workflows/cancel-on-merge.yaml +++ b/.forgejo/workflows/cancel-on-merge.yaml @@ -17,4 +17,4 @@ jobs: uses: https://github.com/styfle/cancel-workflow-action@0.12.1 with: workflow_id: pr-tests.yaml - all_but_latest: false + access_token: ${{ github.token }}