From 326fafad027dc4462292a5d3ec84a869d66aa9a3 Mon Sep 17 00:00:00 2001 From: Phorcys <57866459+phorcys420@users.noreply.github.com> Date: Sat, 28 Oct 2023 22:06:55 +0000 Subject: [PATCH] fix: add `curl` as dependency --- git-commit-signing/README.md | 2 +- git-commit-signing/run.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/git-commit-signing/README.md b/git-commit-signing/README.md index e1ca371..3498378 100644 --- a/git-commit-signing/README.md +++ b/git-commit-signing/README.md @@ -10,7 +10,7 @@ tags: [helper, git] # git-commit-signing This module downloads your SSH key from Coder and uses it to sign commits with Git. -It requires `jq` to be installed inside your workspace. +It requires `curl` and `jq` to be installed inside your workspace. Please observe that using the SSH key that's part of your Coder account for commit signing, means that in the event of a breach of your Coder account, or a malicious admin, someone could perform commit signing pretending to be you. diff --git a/git-commit-signing/run.sh b/git-commit-signing/run.sh index abc826c..de89cfd 100755 --- a/git-commit-signing/run.sh +++ b/git-commit-signing/run.sh @@ -5,6 +5,11 @@ if ! command -v git > /dev/null; then exit 1 fi +if ! command -v curl > /dev/null; then + echo "curl is not installed" + exit 1 +fi + if ! command -v jq > /dev/null; then echo "jq is not installed" exit 1