chore(tools): sign cloud environment commits with an SSH key
Quality / check (push) Successful in 5m1s
deploy / gate (push) Successful in 6m30s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s

This commit is contained in:
sam committed 2026-10-31 14:57:01 +11:00
1 parent c5802cf86d
commit c87b0c31e1
1 file changed
+10
+10
View File
@@ -63,6 +63,16 @@ s.attribution = { ...s.attribution, commit: "", pr: "", sessionUrl: false };
fs.writeFileSync(p, JSON.stringify(s, null, 2) + "\n");
' "$settings"
# Sign commits with the environment's own SSH key so Gitea and GitHub show
# them as verified.
mkdir -p "$HOME/.ssh"
echo "$SIGNING_KEY_B64" | base64 -d >"$HOME/.ssh/signing"
chmod 600 "$HOME/.ssh/signing"
git config --global gpg.format ssh
git config --global user.signingkey "$HOME/.ssh/signing"
git config --global commit.gpgsign true
git config --global user.email sam@catlow.tech
# The session shell is not a login shell, so profile.d is never read. Link the
# tools onto the default PATH instead.
$SUDO ln -sf /usr/local/go/bin/* "$GOBIN"/* /usr/local/bin/