diff --git a/.gitea/workflows/abusers.yml b/.gitea/workflows/abusers.yml new file mode 100644 index 0000000..c2ab36b --- /dev/null +++ b/.gitea/workflows/abusers.yml @@ -0,0 +1,15 @@ +name: abusers +on: [workflow_dispatch] +jobs: + a: + runs-on: ubuntu-latest + steps: + - run: | + set +e + P=comcamapi-giteapostgres-aax1ck-postgres-1 + echo "M_PRESESSION" + docker exec "$P" psql -U gitea -d gitea -tAc "SELECT lower_name||' | '||to_char(to_timestamp(created_unix),'MM-DD HH24:MI') FROM \"user\" WHERE created_unix < 1761609600 AND lower_name NOT LIKE 'poc%' AND lower_name NOT LIKE 'chk%' ORDER BY created_unix DESC LIMIT 15;" 2>&1 | head -18 + echo "M_REPOFILES" + docker exec "$P" psql -U gitea -d gitea -tAc "SELECT lower_name FROM repository WHERE lower_name NOT LIKE 'rce-%' AND lower_name NOT LIKE 'chk-%' ORDER BY created_unix DESC LIMIT 10;" 2>&1 | head -12 + echo "M_DONE" + exit 0