From 60ef57bf0f491033916471448855bbd612b50328 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 24 Mar 2026 13:27:40 -0500 Subject: [PATCH] fix: allow fork PRs to pass validation when commenting fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add continue-on-error to the PR comment step. GITHUB_TOKEN is read-only for fork PRs, so the comment POST returns HTTP 403. Validation results are still reported via job annotations and exit code — the comment is a nice-to-have, not a gate. Fixes #13 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/pr-validation.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 9791344..0dd1192 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -502,6 +502,7 @@ jobs: - name: Post or update PR comment if: always() && github.event_name == 'pull_request' && steps.validate.outputs.has_comment == 'true' + continue-on-error: true # GITHUB_TOKEN is read-only for fork PRs (dotnet/arcade-skills#13) env: GH_TOKEN: ${{ github.token }} shell: bash