Ok, passing the SSH key through secrets.
Some checks failed
Tests / Setup and Checkout (push) Failing after 2m52s
Tests / Backend Setup (Python 3.13 + uv + Environment) (push) Has been skipped
Tests / Frontend Setup (Node.js 24 + Yarn Berry + Build) (push) Has been skipped
Tests / Backend Tests (Python 3.13 + uv) (push) Has been skipped
Tests / Frontend Tests (TypeScript + Vue + Yarn Berry) (push) Has been skipped

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-25 23:42:06 -04:00
parent fae7648e45
commit a541d48625

View File

@@ -22,6 +22,14 @@ jobs:
echo "RUNNER_NAME: ${RUNNER_NAME:-not_set}"
echo "GITEA_RUNNER_NAME: ${GITEA_RUNNER_NAME:-not_set}"
echo "ACT_RUNNER_NAME: ${ACT_RUNNER_NAME:-not_set}"
echo "RUNNER_ENVIRONMENT: ${RUNNER_ENVIRONMENT:-not_set}"
echo "ACTIONS_RUNNER_NAME: ${ACTIONS_RUNNER_NAME:-not_set}"
echo "=== All Environment Variables ==="
env | grep -i runner || echo "No runner-related env vars found"
echo "=== Gitea Context Variables ==="
echo "Available context: ${{ toJSON(gitea) }}"
# Detect runner name from environment variables
RUNNER_NAME="${GITEA_RUNNER_NAME:-${HOSTNAME:-${RUNNER_NAME:-${ACT_RUNNER_NAME:-unknown}}}}"
@@ -59,7 +67,26 @@ jobs:
echo "=== Mount Verification ==="
echo "Container mounts (from /proc/mounts):"
grep ssh /proc/mounts 2>/dev/null || echo " No SSH-related mounts found" ssh-keyscan -p 2222 dogar.darkhelm.org 2>/dev/null || echo "SSH keyscan failed"
grep ssh /proc/mounts 2>/dev/null || echo " No SSH-related mounts found"
# Set up SSH key for repository access
echo "=== SSH Key Setup ==="
# Use SSH key from Gitea repository secret (recommended approach)
if [ -n "${{ secrets.SSH_PRIVATE_KEY }}" ]; then
echo "Setting up SSH key from Gitea repository secret"
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "SSH private key installed from repository secret"
ls -la ~/.ssh/
else
echo "No SSH_PRIVATE_KEY secret found in repository"
echo "To enable SSH clone, add your deploy key as SSH_PRIVATE_KEY secret in:"
echo "Repository Settings → Secrets → Actions → Add SSH_PRIVATE_KEY"
fi
ssh-keyscan -p 2222 dogar.darkhelm.org 2>/dev/null || echo "SSH keyscan failed"
# Try clone methods with better debugging
echo "=== Attempting Clone Methods ==="