From: Remi Gacogne Date: Mon, 2 Jun 2025 10:11:11 +0000 (+0200) Subject: dco: Expect a sign-off from the committer, not the author X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6a449a210cfd7a08d1922d67b2339abd182d156;p=thirdparty%2Fpdns.git dco: Expect a sign-off from the committer, not the author Signed-off-by: Remi Gacogne --- 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