fix(cred): make rollback and audit outcomes truthful
ci/woodpecker/pr/ci Pipeline failed

This commit is contained in:
2026-08-05 18:01:41 -05:00
parent 593b5a1f45
commit 12958610cb
15 changed files with 2041 additions and 117 deletions
@@ -42,7 +42,7 @@ resolution_path=unresolved
case "$host" in
git.uscllc.com) idpfx=gitea-usc;;
git.mosaicstack.dev) idpfx=gitea-mosaicstack;;
*) idpfx="";;
*) exit 0;;
esac
ident="$MOSAIC_GIT_IDENTITY"
[ -z "$ident" ] && ident=$(git config --get mosaic.gitIdentity 2>/dev/null)
@@ -213,6 +213,8 @@ fi
# ---------------------------------------------------------------------------
out=$(run_helper "github.com" "agentA")
assert_eq "unknown host: no output" "" "$out"
out=$(run_helper "github.com" "[email protected]")
assert_eq "unknown host with non-Mosaic username: no output" "" "$out"
out=$(run_helper "github.com" "github-user" MOSAIC_AGENT_NAME=agentA)
assert_eq "unknown host in fleet context: no output" "" "$out"