Skip to content

Commit ed8287b

Browse files
committed
fixup! release: build unsigned Ubuntu .deb package
This avoids some Bash-only `sed` invocations to strip quotes where no stripping is required if `az` is asked to output the value in a more appropriate format. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent c4514dc commit ed8287b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/build-git-installers.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -607,14 +607,9 @@ jobs:
607607
sudo apt-get install -y debsigs
608608
609609
# Download GPG key, passphrase, and keygrip from Azure Key Vault
610-
key=$(az keyvault secret show --name $GPG_KEY_SECRET_NAME --vault-name $AZURE_VAULT --query "value")
611-
passphrase=$(az keyvault secret show --name $GPG_PASSPHRASE_SECRET_NAME --vault-name $AZURE_VAULT --query "value")
612-
keygrip=$(az keyvault secret show --name $GPG_KEYGRIP_SECRET_NAME --vault-name $AZURE_VAULT --query "value")
613-
614-
# Remove quotes from downloaded values
615-
key=$(sed -e 's/^"//' -e 's/"$//' <<<"$key")
616-
passphrase=$(sed -e 's/^"//' -e 's/"$//' <<<"$passphrase")
617-
keygrip=$(sed -e 's/^"//' -e 's/"$//' <<<"$keygrip")
610+
key="$(az keyvault secret show --name "$GPG_KEY_SECRET_NAME" --vault-name "$AZURE_VAULT" --query "value" --output tsv)"
611+
passphrase="$(az keyvault secret show --name "$GPG_PASSPHRASE_SECRET_NAME" --vault-name "$AZURE_VAULT" --query "value" --output tsv)"
612+
keygrip="$(az keyvault secret show --name "$GPG_KEYGRIP_SECRET_NAME" --vault-name "$AZURE_VAULT" --query "value" --output tsv)"
618613
619614
# Import GPG key
620615
echo "$key" | base64 -d | gpg --import --no-tty --batch --yes

0 commit comments

Comments
 (0)