Skip to content

Commit 730d0c5

Browse files
lewingCopilot
andauthored
fix: allow fork PRs to pass validation when commenting fails (#15)
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>
1 parent 76cccf7 commit 730d0c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/pr-validation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ jobs:
502502
503503
- name: Post or update PR comment
504504
if: always() && github.event_name == 'pull_request' && steps.validate.outputs.has_comment == 'true'
505+
continue-on-error: true # GITHUB_TOKEN is read-only for fork PRs (dotnet/arcade-skills#13)
505506
env:
506507
GH_TOKEN: ${{ github.token }}
507508
shell: bash

0 commit comments

Comments
 (0)