Skip to content

feat(ci): optional SHA baseline for Privacy Guard - #30

Merged
bntvllnt merged 1 commit into
mainfrom
feat/privacy-guard-baseline
Nov 22, 2026
Merged

bntvllnt merged 1 commit into
mainfrom
feat/privacy-guard-baseline

Conversation

@bntvllnt

Copy link
Copy Markdown
Contributor

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.sh and its tests gain optional .privacy-baseline support (sha, reason, decided).
  • The required Privacy Guard job scans the PR range on pull requests, baseline..HEAD on push when a baseline file is present, and full history otherwise.

This repository does not add a .privacy-baseline of its own.

Checks

  • Leak scan (gitleaks + commit-metadata + denylist) is clean on this range.
  • Local test-check-commit-emails.sh and test-privacy-denylist.sh pass.

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
bntvllnt merged commit 7a88907 into main Nov 22, 2026
6 checks passed
@bntvllnt
bntvllnt deleted the feat/privacy-guard-baseline branch November 22, 2026 16:10
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>&nbsp;<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>&nbsp;</div>

Co-authored-by: bntvllnt <bntvllnt@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant