Repository navigation
ci: make commit verification advisory via PR comment - #387
Merged
Merged
Conversation
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>
Contributor
Commit verification (advisory)4 commit(s) are not GitHub-Verified:
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>
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
Unverified commits no longer fail Check commits.
check-commit-verification.shposts (or refreshes) a sticky PR comment instead, and always exits 0 for verification findings. Authorship checks remain blocking.Changes
scripts/ci/check-commit-verification.sh: report violations, sticky advisory comment, clear comment when cleanpull-requests: writeand passGITHUB_PR_NUMBERin.github/workflows/commit-checks.ymlAGENTS.mdComments: intent in code, no workaround/hack comments (fix the root cause), CONTRIBUTING allowlist onlyTest plan
bash -n scripts/ci/check-commit-verification.shscripts/ci/check-authorship.shon the PR commits3c56d39wasunknown_key; later commits unsigned viagpgsign=false)Checklist
Note: human author should re-sign commits before merge if a Verified badge is desired.