Repository navigation
ci: add the reusable DCO workflow called by every public repository - #5
Merged
Merged
Conversation
The DCO sign-off check was copy-pasted byte for byte into each public repository's .github/workflows/dco.yml. Keep the one copy here, callable with `on: workflow_call`, so a fix or an action pin bump lands once. The check itself is unchanged. It also runs on this repository's own pull requests, so a change to it is exercised before callers pick it up, and the job skips on any event other than pull_request, where there is no base..head range to check. 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. |
This was referenced Nov 8, 2026
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.
What
Adds
.github/workflows/dco.ymlas a reusable workflow (on: workflow_call). It holds the DCO sign-off check that is currently copy-pasted intoagent,server,ml,rules,rigandscenarios. Each of those repositories gets a follow-up PR that swaps its copy for a short caller:Why
Clean-code charter, "DRY CI": when CI duplication is large, use reusable workflows. Six repositories carry the same 43-line workflow (five copies are byte-identical, and scenarios differs by one comment line). A fix to the check or a bump of the
actions/checkoutpin currently has to land six times.Safety net
workflow_calltrigger, apull_requesttrigger so this repository's own PRs run the check (this PR runs it too), andif: github.event_name == 'pull_request'so a caller wired to another event skips instead of checking an empty range.contents: read, and checkout stays SHA-pinned withpersist-credentials: false. Inside a reusable workflow,github.eventis the caller'spull_requestevent and checkout fetches the caller's repository, so the check runs exactly as it did in each repository.Verification
uvx --from actionlint-py actionlint -shellcheck <shellcheck-py> .github/workflows/dco.yml: exit 0 (actionlint 1.7.12).run:script and ranshellcheck -s bashon it: clean.::error::line (exit 1), a sign-off that names a different email fails (exit 1), and a[bot]@users.noreply.github.comauthor is exempt (exit 0).dco / dco. Run 42532746308 (with an extra unsigned commit) failed on the sign-off step with31aa6e9 tmp: unsigned commit ...: no 'Signed-off-by: ... <author email>' line. This PR's ownpull_requestrun (42531354564) passed.Caller PRs: synthaea-lab/agent#105, synthaea-lab/server#32, synthaea-lab/ml#12, synthaea-lab/rules#5, synthaea-lab/scenarios#3, synthaea-lab/rig#2.
Merge order: merge this PR first. The caller PRs reference
@mainand stay red until it lands.🤖 Generated with Claude Code
https://claude.ai/code/session_01AuFi2XQ6ctHQ1eNQ4Fz8ud