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