diff --git a/git-commit-signing/run.sh b/git-commit-signing/run.sh index d757179..9c20d79 100755 --- a/git-commit-signing/run.sh +++ b/git-commit-signing/run.sh @@ -21,7 +21,8 @@ echo "Downloading SSH key" ssh_key=$(curl --request GET \ --url "${CODER_AGENT_URL}api/v2/workspaceagents/me/gitsshkey" \ - --header "Coder-Session-Token: ${CODER_AGENT_TOKEN}") + --header "Coder-Session-Token: ${CODER_AGENT_TOKEN}" \ + --silent --show-error) jq --raw-output ".public_key" > ~/.ssh/git-commit-signing/coder.pub << EOF $ssh_key