fix: auto-create required labels during compliance audit#67
Merged
Conversation
… apply Adds ensure_required_labels() to compliance-audit.sh so all 6 required labels (security, dependencies, scorecard, bug, enhancement, documentation) are idempotently created during each audit run, eliminating the missing-label-* compliance finding category. Also extends apply-repo-settings.sh with apply_labels() so the remediation script covers labels alongside repository settings. Closes #46 Co-authored-by: don-petry <don-petry@users.noreply.github.com>
|
This was referenced Apr 6, 2026
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
ensure_required_labels()toscripts/compliance-audit.sh— all 6 required labels (security,dependencies,scorecard,bug,enhancement,documentation) are idempotently created on every audit run usinggh label create --forceapply_labels()toscripts/apply-repo-settings.shso the remediation script covers labels alongside repository merge settingsstandards/github-settings.md#labels--standard-setWhy
The compliance audit was repeatedly filing
missing-label-dependencies(and potentially othermissing-label-*) issues because there was no mechanism to auto-create the required labels. By creating them during the audit itself, the finding category is self-healing and won't recur.Test plan
scripts/compliance-audit.shsyntax is valid (bash -n)scripts/apply-repo-settings.shsyntax is valid (bash -n)missing-label-*findings remain after labels are created./scripts/apply-repo-settings.sh <repo>and confirm labels are created in the target repoCloses #46
Generated with Claude Code