ci: fix issues in offline test workflow when running for an untrusted author (#4411)

This commit is contained in:
Tyler Wilding
2026-09-09 18:37:41 -04:00
committed by GitHub
parent 90ee91fcf0
commit 450b9449fe
+2
View File
@@ -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