feat: Add genome Git ASKPASS helper
This commit is contained in:
parent
f5b7367f75
commit
a9c5d56136
1 changed files with 19 additions and 0 deletions
19
deploy/nexus/genome-askpass.sh
Normal file
19
deploy/nexus/genome-askpass.sh
Normal 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
|
||||||
Loading…
Add table
Reference in a new issue