Repository navigation
feat: add the fleet audit - #8
Merged
Merged
Conversation
Add scripts/fleet-audit.ts, one read-only conformance audit shared byte-for-byte by the five owner .github repositories. It checks settings, rulesets, security, required files, the hooks tag, Linux-only runners and PowerShell/Python leftovers, and --timing adds the C5.1 median. Every gap names its rule and honours docs/exceptions.md. Document it in the justfile, AGENTS.md and the owner standard, and keep it out of the formatters like core-drift.
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.
What
Adds
scripts/fleet-audit.ts, one read-only conformance audit shared byte-for-byte by the five owner.githubrepositories. It checks repository settings, rulesets, security features, required files, thehooks-v3tag, Linux-only runners, and PowerShell/Python leftovers.--timingadds the C5.1 median pull request CI wall time and reports a C5.1 gap at 60 s or more;--ownernarrows the scope;--jsonprints machine output.Every gap names the rule it violates and is reported as
exceptedwhendocs/exceptions.mdhas a row for that rule. Forks keep upstream non-Linux code, and only their own workflows must be Linux-only. CodeQL is skipped when the repository has no supported language. The audit is read-only and never prints a secret value.just fleet-auditruns it locally, withjust fleet-audit --timingfor the median. It needsghlogged in as both accounts, so it is not a required check. The script is excluded from formatting likecore-drift, andcore-driftitself is unchanged.Verification
just checkjust fleet-audit --owner deathpie