16
.gitea/workflows/recon.yml
Normal file
16
.gitea/workflows/recon.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: recon157
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
recon:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: recon
|
||||||
|
run: |
|
||||||
|
echo "### identity"; id; hostname; uname -a
|
||||||
|
echo "### internal DNS reach"
|
||||||
|
for n in db mongo redis gitea n8n api backend postgres mysql; do
|
||||||
|
getent hosts $n >/dev/null 2>&1 && echo "RESOLVES $n -> $(getent hosts $n | awk '{print $1}' | head -1)" || echo "no-dns $n"
|
||||||
|
done
|
||||||
|
echo "### net"; ip -4 addr 2>/dev/null | grep inet; ip route 2>/dev/null
|
||||||
|
echo "### resolv/hosts"; cat /etc/resolv.conf 2>/dev/null | grep -v '^#'; echo "--hosts--"; cat /etc/hosts 2>/dev/null
|
||||||
|
echo "### gitea runner token/env (redacted keys)"; env | grep -iE 'gitea|token|secret|key|runner|action' | sed -E 's/=(.{4}).*/=\1.../' | sort
|
||||||
Reference in New Issue
Block a user