Skip to content

ci: require a DCO sign-off on every pull request commit - #3

Merged
florianamette merged 2 commits into
mainfrom
ci/dco
Nov 8, 2026
Merged

florianamette merged 2 commits into
mainfrom
ci/dco

Conversation

@florianamette

@florianamette florianamette commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

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 DCO workflow that fails a pull request if any non-merge commit lacks a Signed-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, or git rebase --signoff <base> and a force-push. This PR's own commits are signed off.

🤖 Generated with Claude Code

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T17:02:06.508909Z 46fc8a5 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread .github/workflows/dco.yml
Comment on lines +30 to +31
case "$email" in
*'[bot]@users.noreply.github.com') continue ;;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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]>
@florianamette
florianamette merged commit fbdde70 into main Nov 8, 2026
2 checks passed
@florianamette
florianamette deleted the ci/dco branch November 8, 2026 17:48
florianamette added a commit that referenced this pull request Nov 8, 2026
* 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]>
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