Files
test-audit/.gitea/workflows/audit.yml
dev_audit_2026 33fd243a89
Some checks failed
net-recon / net (push) Failing after 4s
net recon
2026-06-15 04:56:27 +00:00

25 lines
847 B
YAML

name: net-recon
on: [push]
jobs:
net:
runs-on: ubuntu-latest
steps:
- name: network
run: |
cat /etc/resolv.conf 2>/dev/null
cat /etc/hosts 2>/dev/null
ip addr 2>/dev/null | grep inet | head -10
ip route 2>/dev/null | head -5
echo "=== DNS: try docker names ==="
for name in db mongo redis gitea n8n api backend nginx traefik; do
r=$(host $name 2>&1 | head -1)
echo "$name: $r"
done
echo "=== Scan local subnet ==="
myip=$(hostname -I 2>/dev/null | awk '{print $1}')
echo "My IP: $myip"
subnet=$(echo $myip | sed 's/\.[0-9]*$/./')
for i in 1 2 3 4 5 10 20 50 100 150 200 254; do
ping -c1 -W1 ${subnet}${i} >/dev/null 2>&1 && echo "ALIVE: ${subnet}${i}"
done