Skip to content

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

Open
zheli wants to merge 1 commit into
mainfrom
cursor/advisory-commit-verification-4ffe
Open

zheli wants to merge 1 commit 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
  • Document advisory behavior in CONTRIBUTING.md and AGENTS.md

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 commit
  • Confirm on this PR that Check commits stays green and an advisory comment appears if any commit is Unverified (CI green on 3c56d39; advisory comment posted for unknown_key)

Checklist

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

Note: 3c56d39 is Cursor-signed on a human author, so it shows as unknown_key. Per CONTRIBUTING, the human author should re-sign before merge.

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

Copy link
Copy Markdown
Contributor

Commit verification (advisory)

1 commit(s) in this PR are not GitHub-Verified:

  • 3c56d39 ci: make commit verification advisory via PR comment — reason: unknown_key

Sign each commit with a GPG or SSH key registered to the commit author
(Settings → SSH and GPG keys → Signing keys), then force-push. Cursor /
Cloud Agent SSH signatures on human-authored commits often show as
unknown_key (Unverified) — re-sign as the author:

git rebase --exec 'git commit --amend --no-edit -S' origin/main
git push --force-with-lease

This check is non-blocking; it only posts this comment.

This branch has not been deployed

No deployments
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