Repository navigation
ci: require a DCO sign-off on every pull request commit - #3
Conversation
CONTRIBUTING.md has asked for 'git commit -s' all along, but nothing checked it and most commits carry no sign-off. This workflow fails a pull request whose commits lack a Signed-off-by line with the author's email; merge commits and bots are exempt. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AuFi2XQ6ctHQ1eNQ4Fz8ud Signed-off-by: Florian Amette (F4K) <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46fc8a550f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| case "$email" in | ||
| *'[bot]@users.noreply.github.com') continue ;; |
There was a problem hiding this comment.
Verify bot provenance before exempting unsigned commits
A human contributor can bypass the sign-off requirement by setting a commit's author email to dependabot[bot]@users.noreply.github.com: this branch skips the commit without checking whether a bot actually created it. Author metadata is contributor-controlled (git commit -h documents --author as “override author for commit”), so the email suffix does not establish bot provenance. Base the exemption on trusted bot provenance, or require sign-offs for these commits as well, to prevent unsigned human contributions from passing the DCO check.
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AuFi2XQ6ctHQ1eNQ4Fz8ud Signed-off-by: Florian Amette (F4K) <[email protected]>
* ci: require a DCO sign-off on every pull request commit CONTRIBUTING.md has asked for 'git commit -s' all along, but nothing checked it and most commits carry no sign-off. This workflow fails a pull request whose commits lack a Signed-off-by line with the author's email; merge commits and bots are exempt. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AuFi2XQ6ctHQ1eNQ4Fz8ud Signed-off-by: Florian Amette (F4K) <[email protected]> * ci(dco): point at CONTRIBUTING.md only Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AuFi2XQ6ctHQ1eNQ4Fz8ud Signed-off-by: Florian Amette (F4K) <[email protected]> --------- Signed-off-by: Florian Amette (F4K) <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
CONTRIBUTING.md has always asked for
git commit -s(Developer Certificate of Origin), but nothing checked it, and most commits carry no sign-off.This adds a
DCOworkflow that fails a pull request if any non-merge commit lacks aSigned-off-by:line with the commit author's email. Bot commits (Dependabot) are exempt. The error names each offending commit and gives the fix:git commit -s, orgit rebase --signoff <base>and a force-push. This PR's own commits are signed off.🤖 Generated with Claude Code