Skip to content

fix: credit the workflow_run fork guard (head_repository == github.repository) - #28

Merged
north-echo merged 1 commit into
mainfrom
fix/workflow-run-fork-guard
Jul 18, 2026
Merged

fix: credit the workflow_run fork guard (head_repository == github.repository)#28
north-echo merged 1 commit into
mainfrom
fix/workflow-run-fork-guard

Conversation

@north-echo

Copy link
Copy Markdown
Owner

Companion to the FG-001 workflow_run coverage: containsForkGuard only knew the pull_request fork-guard form (head.repo.full_name), so it over-flagged workflow_run jobs gated on the standard workflow_run.head_repository.full_name == github.repository (internal-only). Now credited. Verified: duobaseio/forui 5 findings high→info. Tests added, suite green.

🤖 Generated with Claude Code

…pository)

The FG-001 workflow_run coverage (prev commit) over-flagged the standard
safe pattern: a workflow_run job gated on
`github.event.workflow_run.head_repository.full_name == github.repository`
only runs for internal (base-repo) triggering runs, never forks.
containsForkGuard only knew the pull_request form (`head.repo.full_name`),
so it missed the workflow_run form (`head_repository.full_name`).

Verified: duobaseio/forui's 5 workflow_run FG-001 findings go high -> info.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@north-echo
north-echo merged commit 7df1f53 into main Jul 18, 2026
1 check passed
@north-echo
north-echo deleted the fix/workflow-run-fork-guard branch July 18, 2026 02:15
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