Skip to content

ci: make commit verification advisory via PR comment - #387

Merged
zheli merged 4 commits into
mainfrom
cursor/advisory-commit-verification-4ffe
Dec 1, 2026
Merged

zheli merged 4 commits into
mainfrom
cursor/advisory-commit-verification-4ffe

Conversation

@zheli

@zheli zheli commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Unverified commits no longer fail Check commits. check-commit-verification.sh posts (or refreshes) a sticky PR comment instead, and always exits 0 for verification findings. Authorship checks remain blocking.

Changes

  • Soft-fail scripts/ci/check-commit-verification.sh: report violations, sticky advisory comment, clear comment when clean
  • Grant pull-requests: write and pass GITHUB_PR_NUMBER in .github/workflows/commit-checks.yml
  • Keep CONTRIBUTING/AGENTS lean: encode soft-fail in CI, not long docs; slim advisory comment
  • Harden AGENTS.md Comments: intent in code, no workaround/hack comments (fix the root cause), CONTRIBUTING allowlist only

Test plan

  • bash -n scripts/ci/check-commit-verification.sh
  • Mock curl suite: unverified → comment + exit 0; verified → delete sticky + exit 0; no token → skip + exit 0
  • scripts/ci/check-authorship.sh on the PR commits
  • Confirm Check commits stays green with advisory comment (3c56d39 was unknown_key; later commits unsigned via gpgsign=false)

Checklist

  • Docs updated
  • CLI ↔ Web UI parity N/A (CI-only)

Note: human author should re-sign commits before merge if a Verified badge is desired.

Open in Web Open in Cursor 

Unverified commits still get reported, but the Check commits job stays
green and only posts (or refreshes) a sticky PR comment so Cloud Agent
unsigned/unknown_key signatures no longer block merge.

Co-authored-by: Zhe Li <linuxcity.jn@gmail.com>
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Commit verification (advisory)

4 commit(s) are not GitHub-Verified:

  • 43f6893 docs(agents): harden poteto no-comments rule for agents — reason: unsigned
  • f4f33ad docs(agents): drop unreachable no-Co-authored-by commit rule — reason: unsigned
  • a314126 ci: tighten advisory verification docs and agent commit rules — reason: unsigned
  • 3c56d39 ci: make commit verification advisory via PR comment — reason: unknown_key

Re-sign as the commit author (GitHub → Settings → SSH and GPG keys → Signing keys), then force-push.

Non-blocking.

Keep the soft-fail check, drop narrating soft-fail mechanics from docs,
slim the advisory PR comment, and teach Cloud Agents to commit as a
human without Cursor signing or Co-authored-by trailers.

Co-authored-by: Zhe Li <linuxcity.jn@gmail.com>
Cursor's managed commit hook already appends the invoking human as
Co-authored-by; keep the actionable rule to disable Cursor signing when
committing as a human author.

Co-authored-by: Zhe Li <linuxcity.jn@gmail.com>
Spell out that intent belongs in code, workaround comments are
unacceptable (fix the root cause), and exceptions stay the CONTRIBUTING
allowlist only.

Co-authored-by: Zhe Li <linuxcity.jn@gmail.com>
@zheli
zheli merged commit 8a95fbf into main Dec 1, 2026
22 checks passed
@zheli
zheli deleted the cursor/advisory-commit-verification-4ffe branch December 1, 2026 15:59
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