~sircmpwn/builds.sr.ht

2956e55a6dafcae3e3d6ae3614b235c19dae6a65 — Drew DeVault 1 year, 5 months ago 5f5c72f 0.66.2
Some cleanup on build validation
1 files changed, 2 insertions(+), 1 deletions(-)

M buildsrht/runner.py
M buildsrht/runner.py => buildsrht/runner.py +2 -1
@@ 18,7 18,8 @@ def queue_build(job, manifest):
    db.session.commit()
    # crypto mining attempt
    # pretend to accept it and let the admins know
    if "xuirig" in json.dumps(manifest.to_dict()):
    sample = json.dumps(manifest.to_dict())
    if "xuirig" in sample or "miner" in sample:
        send_email(f"User {job.owner.canonical_name} attempted to submit cryptocurrency mining job #{job.id}",
                cfg("sr.ht", "owner-email"),
                "Cryptocurrency mining attempt on builds.sr.ht")