feat(qwen): let Qwen (and Kimi) join the swarm #30
@@ -108,7 +108,10 @@ jobs:
|
|||||||
# write ~/.netrc or ~/.config/go/env. Guarded on a non-empty secret:
|
# write ~/.netrc or ~/.config/go/env. Guarded on a non-empty secret:
|
||||||
# `grep -F ""` matches every file, so a secretless run (fork PR) would
|
# `grep -F ""` matches every file, so a secretless run (fork PR) would
|
||||||
# fail here with a message accusing it of leaking nothing.
|
# fail here with a message accusing it of leaking nothing.
|
||||||
if [ -n "${REGISTRY_PASSWORD:-}" ] && grep -rqF "$REGISTRY_PASSWORD" "$HOME" 2>/dev/null; then
|
# -e, so a password beginning with "-" is a pattern and not options:
|
||||||
|
# without it the check errors out and, under `set -e`, fails the step
|
||||||
|
# with a message about grep usage rather than about credentials.
|
||||||
|
if [ -n "${REGISTRY_PASSWORD:-}" ] && grep -rqF -e "$REGISTRY_PASSWORD" "$HOME" 2>/dev/null; then
|
||||||
echo "::error::registry credential still present under \$HOME after scrub"
|
echo "::error::registry credential still present under \$HOME after scrub"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user