chore(tools): sign cloud environment commits with an SSH key
This commit is contained in:
1 parent
c5802cf86d
commit
c87b0c31e1
1 file changed
+10
@@ -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/
|
||||
|
||||
Reference in new issue
Block a user