This repository has been archived on 2026-11-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
unkin-agent 0695c4c2e3
ci / go (pull_request) Failing after 11m25s
ci / actions (pull_request) Failing after 11m25s
ci / ci (pull_request) Failing after 11m26s
ci / release-snapshot (pull_request) Failing after 1s
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci / goreleaser-check (pull_request) Has been cancelled
Prepare for GitHub migration
2026-11-27 22:10:21 +11:00

10 lines
400 B
Bash
Executable File

#!/usr/bin/env bash
# Detached binary signature of $1 into $2 via the Vault gpg engine.
set -euo pipefail
b=$(base64 -w0 "$1")
jq -n --arg input "$b" '{input: $input, format: "base64"}' \
| curl -sSf --cacert "${VAULT_CACERT:-/etc/vault-ca/ca.crt}" \
-H "X-Vault-Token: ${VAULT_TOKEN}" -d @- \
"${VAULT_ADDR}/v1/gpg/sign/iuclabs-release" \
| jq -er .data.signature | base64 -d > "$2"