-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] [investigate] DCO sign off on branch merges #682
Comments
When merging a PR, we can see this: The message clearly says: "This commit will be authored by [email protected]", I wonder if we update the merge commit message to be singned off by that email, if it will work as expected when the DCO test is done? Also, would it be ok to change the signoff message? |
Seems like a weird process, but I think it would solve the manual merges. For auto-review bot, I can switch to using https://cli.github.com/manual/gh_pr_merge, which seems to have an |
At least for now we can try with the manual merge + use the noreply! |
I think I know about the issue! |
So my understanding is that if the primary email address in GitHub is the same as the email address used during signoff, the merge commit will pass the DCO test. |
Description
Once a ceremony is complete on a branch (e.g. ceremony/2023-02-22), a final automated workflow creates a PR that merges the ceremony branch to main.
This creates a PR with the ceremony commits, for example, see this PR: #676
Which is opened by the sigstore-bot from the workflow and contains the individual commits from the ceremony branch to merge into main.
After manually adding DCO to the
Update Snapshot and Timestamp
PR, we still find that the DCO action fails to validate the commits due to a mismatch on the sign-off committer name and email and the actual one in the sign-off.It seems like the committer is the GH user of the person who merged the commit (or in the case of a maintainer, theirs?) and the actual person who signed off is the sign-off email used in the commit.
(1) I'm not sure why DCO is doing such a strict validation.
(2) I know we could squash and create a merge commit with sign-off, but then we lose the individual commits preserved
(3) We can "Set DCO to pass" manually on these and merge.
(4) It feels like there must be a better way for DCO to detect this.
@kommendorkapten
Version
The text was updated successfully, but these errors were encountered: