fix(governance): audit and reconcile repository policy - #81
Merged
Conversation
## Summary Bring all active Atrinik repositories, including web-platform, under one explicit governance inventory and make live drift visible and fail closed. ## Implementation / behavior - Add web-platform to the pull-request and custom-property desired state without inventing a required CI check before the repository has a workflow. - Make both publishers reject unregistered active repositories and missing governed repositories while preserving absent archived history. - Add a read-only audit for repository inventory, merge defaults, custom-property schema and values, inherited rulesets, and exposed security baseline. - Run the audit on schedule and after publisher applies, with tests for unmanaged repositories, drift, and temporary GitHub advisory workspaces. ## Validation - bin/validate - bash -n bin/* tests/*.sh - shellcheck bin/* tests/*.sh - actionlint - complete shell test suite - bin/audit against the live Atrinik organization - git diff --check ## Limitations / follow-up Live settings were reconciled with the authenticated organization publisher before this PR was opened; the post-apply audit passed for 21 active repositories. Future repository creation still requires registering both desired-state inventories and running the publisher workflow, with the scheduled audit providing fail-closed detection if that step is missed.
|
🎉 This PR is included in version 2.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
Bring all active Atrinik repositories, including
web-platform, under one explicit governance inventory and make live drift visible and fail closed.Implementation / behavior
web-platformto the pull-request and custom-property desired state without inventing a required CI check before the repository has a workflow.Validation
bin/validatebash -n bin/* tests/*.shshellcheck bin/* tests/*.shactionlintbin/auditagainst the live Atrinik organizationgit diff --checkLimitations / follow-up
Live settings were reconciled with the authenticated organization publisher before this PR was opened; the post-apply audit passed for 21 active repositories. Future repository creation still requires registering both desired-state inventories and running the publisher workflow, with the scheduled audit providing fail-closed detection if that step is missed.