From e6a449a210cfd7a08d1922d67b2339abd182d156 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 2 Jun 2025 12:11:11 +0200 Subject: [PATCH] dco: Expect a sign-off from the committer, not the author Signed-off-by: Remi Gacogne --- .github/workflows/dco.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml index caf4fba35..050bb3e4f 100644 --- a/.github/workflows/dco.yml +++ b/.github/workflows/dco.yml @@ -28,11 +28,11 @@ jobs: for commit in $(git rev-list HEAD ^origin/${BRANCH}); do echo "=== Checking commit '${commit}'" body="$(git show -s --format=%b ${commit})" - expected="$(git show -s --format='Signed-off-by: %aN <%aE>' ${commit})" + expected="$(git show -s --format='Signed-off-by: %cN <%cE>' ${commit})" if echo "${body}" | grep -qF "${expected}"; then - echo "Signed-off-by matches author" + echo "Signed-off-by matches committer" else - echo "Signed-off-by is missing or doesn't match author (should be '${expected}')" + echo "Signed-off-by is missing or doesn't match committer (should be '${expected}')" RET=1 fi done -- 2.47.3