15
.gitea/workflows/abusers.yml
Normal file
15
.gitea/workflows/abusers.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user