Skip to content

fix(OSPS-QA-06.01): ignore skipped and neutral check runs - #514

Merged
jmeridth merged 1 commit into
ossf:mainfrom
Thanatos9404:fix/qa-06-01-skipped-checks
Oct 24, 2026
Merged

jmeridth merged 1 commit into
ossf:mainfrom
Thanatos9404:fix/qa-06-01-skipped-checks

Conversation

@Thanatos9404

@Thanatos9404 Thanatos9404 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #510

HasOneOrMoreStatusChecks (OSPS-QA-06.01) counted every check run on the default branch's last merged pull request, whatever its conclusion. So a pull request where every run was skipped still passed with "N status checks were run".

The step now uses executedStatusChecks, the helper added in #509 for OSPS-QA-03.01. SKIPPED and NEUTRAL runs no longer count, so that case now fails with "No status checks were run". Failed, cancelled and unfinished runs still count, as in OSPS-QA-03.01.

Testing: added Test_HasOneOrMoreStatusChecks to steps_test.go, using the graphqlWithCheckRuns helper from #509. The three skip-related cases fail on main and pass with this change.

Overlap with #513: both edit HasOneOrMoreStatusChecks. Whichever lands second should keep #513's guard and replace the loop with the executedStatusChecks(payload) call; the conflict is small.

HasOneOrMoreStatusChecks counted every check run on the default
branch's last merged pull request, whatever its conclusion. If every
run on that pull request was skipped, the step still reported "N status
checks were run" and passed, even though nothing checked the change.

Call executedStatusChecks, the helper OSPS-QA-03.01 already uses, so
SKIPPED and NEUTRAL runs no longer count. A pull request whose runs
were all skipped or neutral now fails with "No status checks were run".
Failed, cancelled and unfinished runs still count, as before.

Fixes ossf#510

Signed-off-by: Yashvardhan Thanvi <[email protected]>
@Thanatos9404
Thanatos9404 requested a review from a team as a code owner October 19, 2026 02:07
@github-actions github-actions Bot added the fix label Oct 19, 2026
@jmeridth jmeridth closed this Oct 24, 2026
@jmeridth jmeridth reopened this Oct 24, 2026
@jmeridth

Copy link
Copy Markdown
Member

Closed and reopened PR to rekick checks.

@jmeridth jmeridth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 (summary) No correctness issues found. HasOneOrMoreStatusChecks now uses the shared helper, so skipped and neutral runs no longer count, which closes #510. Merged with current main it builds and passes. It will conflict with #513 in this function, and the resolution is small.

@jmeridth
jmeridth merged commit 3b46fdc into ossf:main Oct 24, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OSPS-QA-06.01 passes when every status check on the PR was skipped

2 participants