Skip to content

Prevent fork PR comment failures from blocking schema validation - #37

Merged
sethsec merged 1 commit into
mainfrom
fix/pr-comment-fork-permissions
Aug 17, 2026
Merged

Prevent fork PR comment failures from blocking schema validation#37
sethsec merged 1 commit into
mainfrom
fix/pr-comment-fork-permissions

Conversation

@sethsec

@sethsec sethsec commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • PRs from forks get a read-only GITHUB_TOKEN from GitHub regardless of the permissions: block in the workflow, so the "Comment on PR" steps 403 with Resource not accessible by integration.
  • This was failing the whole validate job (and thus the required status check) even when schema validation itself passed cleanly.
  • Adds continue-on-error: true to both comment steps so a failed comment doesn't block merging, without granting forks any elevated permissions (no pull_request_target, no workflow permission changes).

Test plan

Fork PRs get a read-only GITHUB_TOKEN regardless of workflow-level
permissions, so the auto-comment step 403s and fails the required
status check even when schema validation itself passed. Mark the
comment steps continue-on-error so validation results still gate
merges without granting forks write access.
@sethsec
sethsec merged commit 75561b0 into main Aug 17, 2026
1 check was pending
@sethsec
sethsec deleted the fix/pr-comment-fork-permissions branch August 17, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant