Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

ci: require signed commits on pull requests [I1]

Corey Olsone4a584556b16
diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml
new file mode 100644
index 00000000..bace0d9a
--- /dev/null
+++ b/.github/workflows/dco.yml
@@ -0,0 +1,23 @@
+name: DCO
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
+ dco:
+ name: DCO
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '22.13'
+ - name: Check every new non-merge commit
+ run: node bin/check-signoffs.js
diff --git a/test/workflows.test.js b/test/workflows.test.js
index 92a39302..c3069dde 100644
--- a/test/workflows.test.js
+++ b/test/workflows.test.js
@@ -66,6 +66,8 @@ function contributorWorkflows() {
const dco = workflowText(resolve(ROOT, '.github/workflows/dco.yml'));
assert.match(dco, /^name: DCO\n/u, 'the DCO check has a stable required-check name');
assert.match(dco, /\npull_request:\n/u, 'the DCO workflow runs on pull requests');
+ assert.match(dco, /\n dco:\n {4}name: DCO\n/u, 'the pull-request check is named DCO');
+ assert.match(dco, /\n {8}fetch-depth: 0\n/u, 'the checker receives the full pull-request history');
assert.match(dco, /run: node bin\/check-signoffs\.js\n/u,
'the DCO workflow runs the repository sign-off checker');
}