From 450b9449feec14ec9670d34c2ff5d99ab1c558ef Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Wed, 9 Sep 2026 18:37:41 -0400 Subject: [PATCH] ci: fix issues in offline test workflow when running for an untrusted author (#4411) --- .github/workflows/offline-tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/offline-tests.yaml b/.github/workflows/offline-tests.yaml index 54b01b6f2b..3219dde042 100644 --- a/.github/workflows/offline-tests.yaml +++ b/.github/workflows/offline-tests.yaml @@ -36,6 +36,7 @@ jobs: COMMENT_ID: ${{ github.event.comment.user.id }} COMMENT: ${{ github.event.comment.body }} PR_NUMBER: ${{ github.event.issue.number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -e @@ -70,6 +71,7 @@ jobs: SHA=$(gh api repos/${{ github.repository }}/pulls/$PR_NUMBER --jq '.head.sha') if [ "$COMMENT" = "ok to test" ] && grep -Fxq "$COMMENT_ID" ./.tmp-ci/allowlist.txt; then is_trusted=true + gh pr comment "${{ github.event.issue.number }}" --body "Offline tests running: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" fi fi