Repository navigation
fix(check): report yolo-workflows as unknown when the canonical owner is unresolved - #1396
Merged
Merged
Conversation
… is unresolved Without the owner, the expected output drops the fork guard every committed generated workflow carries, so the byte comparison reported drift that was not there. Refs #1395
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
detect_canonical_ownerfails,run_all_checksrendered the expected yolo workflows withrepo_owner="". That output has no fork guard, and every committed generated workflow has one, soyolo-workflowsreported FAIL ("not current generated output") because the owner lookup failed, not because the workflows had drifted. The check now reports unknown in that case, andtend checkgoes through its existing "Yolo security checks are incomplete" path instead of a hard failure. The new testtest_yolo_workflows_unknown_when_canonical_owner_is_unresolvedfails before the change (passed is False) and passes after it.test_run_all_checks_yolo_accepts_main_deploy_without_reviewernow stubs the owner, because its fakeghcan't resolve one.This covers only the issue's last paragraph. The main report, where every yolo consumer fails this check between a release and its regeneration PR, needs a decision on whether an earlier release's output counts as audited, so this PR doesn't change it.
Refs #1395 — automated triage