Skip to content

Re-create backport commits via the Git Data API so they are verified - #502

Merged
rajathagasthya merged 1 commit into
mainfrom
backport-verified-signatures
Sep 14, 2026
Merged

rajathagasthya merged 1 commit into
mainfrom
backport-verified-signatures

Conversation

@rajathagasthya

Copy link
Copy Markdown
Contributor

main, release-0.14 and release-0.15 require signed commits, but the cherry-pick workflow pushes backport commits with git push from the runner, which never signs them. Every open backport PR to release-0.15 (#496 through #499) is currently blocked on an unsigned commit.

After the push, re-create each new commit on the backport branch through the Git Data API, chaining from the target branch head, and force-point the backport branch at the new tip. GitHub signs commits created this way, so the chain shows as "Verified" without managing a GPG or SSH key for the bot. The initial push is kept because the API needs the tree objects to exist in the repository before the commits can be created. The re-created commits are authored by github-actions[bot]; the original commit stays referenced through the cherry-pick trailer.

Ported from NVIDIA/nvidia-container-toolkit#2012. Backport PRs opened in that repo since the change merged (for example NVIDIA/nvidia-container-toolkit#2092 through #2096) carry verified commits.

main, release-0.14 and release-0.15 require signed commits, but the
cherry-pick workflow pushes backport commits with git push from the
runner, which never signs them. Every open backport PR to release-0.15
(#496 through #499) is currently blocked on an unsigned commit.

After the push, re-create each new commit on the backport branch through
the Git Data API, chaining from the target branch head, and force-point
the backport branch at the new tip. GitHub signs commits created this
way, so the chain shows as "Verified" without managing a GPG or SSH key
for the bot. The initial push is kept because the API needs the tree
objects to exist in the repository before the commits can be created.
The re-created commits are authored by github-actions[bot]; the original
commit stays referenced through the cherry-pick trailer.

Ported from NVIDIA/nvidia-container-toolkit#2012.

Signed-off-by: Rajath Agasthya <ragasthya@nvidia.com>
@rajathagasthya
rajathagasthya merged commit 6f6ee46 into main Sep 14, 2026
14 checks passed
@rajathagasthya
rajathagasthya deleted the backport-verified-signatures branch September 14, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants