fix(ci): authenticate releases through scoped credential helper
Release / release (push) Successful in 2m9s
CI / build (push) Successful in 51s

This commit is contained in:
dmg committed 2026-09-10 20:45:37 -04:00
1 parent 7a481f366c
commit 9d3791a9c3
4 files changed
+75 -14

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# Git credential protocol; never invoke directly with a real token in recorded output.
# Only Git receives credential stdout. No secret is stored in this file or passed in argv.
set -eu
[ "${1:-}" = get ] || exit 0
protocol='' host='' path=''
while IFS='=' read -r key value && [ -n "$key" ]; do
case "$key" in
protocol) protocol=$value ;;
host) host=$value ;;
path) path=$value ;;
esac
done
[ "$protocol" = https ] || exit 0
[ "$host" = git.garvis.dev ] || exit 0
[ "$path" = dmg/spigot-ignis.git ] || exit 0
[ -n "${IGNIS_RELEASE_TOKEN:-}" ] || exit 0
printf 'username=dmg\npassword=%s\n\n' "$IGNIS_RELEASE_TOKEN"