Skip to content

fix(audit): merge ruleset required checks when legacy list is empty - #537

Closed
rockygeekz wants to merge 1 commit into
ansible:mainfrom
rockygeekz:fix/audit-ruleset-required-checks
Closed

fix(audit): merge ruleset required checks when legacy list is empty#537
rockygeekz wants to merge 1 commit into
ansible:mainfrom
rockygeekz:fix/audit-ruleset-required-checks

Conversation

@rockygeekz

Copy link
Copy Markdown
Contributor

Summary

Weekly supply-chain audit flagged ansible/actions as having no required status checks even though the repo uses GitHub rulesets (ack / ack, tox / check, check, SonarCloud).

Legacy branch protection API still returns a protection object, but required_status_checks.checks is empty after checks moved to rulesets. collect_branch_protection() returned early without reading rulesets.

This merges ruleset required checks when the legacy list is empty.

Test plan

  • Run audit collector against ansible/actions and confirm required checks are populated
  • Confirm repos with only legacy protection still behave as before

Repos like ansible/actions keep branch protection for reviews but define
required status checks in rulesets only. The legacy protection API returns
an empty checks array, which made weekly supply-chain audits false-positive
"no required status checks configured". Fall back to rulesets when legacy
checks are missing.
@rockygeekz

rockygeekz commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing: fork PRs to ansible/team-devtools do not get working CI here (checkout step fails with Input required and not supplied: token on the lint job). This is a known fork/workflow limitation, not a problem with the patch itself.

@rockygeekz rockygeekz closed this Sep 9, 2026
@rockygeekz
rockygeekz deleted the fix/audit-ruleset-required-checks branch September 9, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant