Repository navigation
feat(ci): optional SHA baseline for Privacy Guard - #30
Merged
Merged
Conversation
Mirror the skills commit-metadata baseline: when a committed .privacy-baseline is present, the required check scans baseline..HEAD on push and the PR range on pull requests. With no file it stays full-history.
bntvllnt
added a commit
that referenced
this pull request
Nov 23, 2026
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Summary Scheduled runs of **Update packaged skills** stop with `main protection differs from the reviewed merge contract`. `protection()` still expects only `validate` from GitHub Actions app 15368. Current main protection also requires `Privacy Guard` from the same app. The check rollup on merged PR #30 marks those two checks required and leaves CodeQL and the Analyze jobs optional. `checks_pass()` also treated a lone `validate` success as enough to merge, so updating the contract alone would have let auto-merge proceed before Privacy Guard finished. - One reviewed set, `REQUIRED_CHECKS`, is used both to compare branch protection and to decide when auto-merge may proceed. - Auto-merge waits until every required check has completed successfully on the exact PR head. A missing, failed, skipped, cancelled, in-progress, wrong-app, or wrong-head required check leaves the PR open. - Optional checks do not gate the merge. The other protection terms stay as they are: strict checks, administrators enforced, zero required approving reviews, force pushes disabled, and deletions disabled. This PR does not change branch protection. ## Tests `python3 -m unittest discover -s tests -v` (40 tests) and `python3 scripts/sync.py --check`. A hosted updater run after this merges is still required to show the schedule continues. This PR is not merged. <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-3e100627-90ac-5cae-8e10-bf078a916641?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-3e100627-90ac-5cae-8e10-bf078a916641&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> Co-authored-by: bntvllnt <bntvllnt@users.noreply.github.com>
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.
Why
Mirror the reusable Privacy Guard SHA-baseline support from vllnt/skills, since this repo uses the same commit-metadata scripts.
What
scripts/check-commit-emails.shand its tests gain optional.privacy-baselinesupport (sha,reason,decided).baseline..HEADon push when a baseline file is present, and full history otherwise.This repository does not add a
.privacy-baselineof its own.Checks
test-check-commit-emails.shandtest-privacy-denylist.shpass.