feat: Add genome Git ASKPASS helper

This commit is contained in:
Matteo Cherubini 2026-06-20 22:23:57 +02:00
parent f5b7367f75
commit a9c5d56136

View file

@ -0,0 +1,19 @@
#!/bin/bash
#
# GIT_ASKPASS helper for Forgejo HTTP authentication.
# Git invokes this script when it needs a username or password.
#
set -eu
# Load environment variables
. "${HOME}/.config/knowledge-genome.env"
case "${1:-}" in
*[Uu]sername*)
printf '%s\n' "${FORGEJO_USER:-n8n-bot}"
;;
*)
printf '%s\n' "${FORGEJO_TOKEN:?FORGEJO_TOKEN not set}"
;;
esac