This commit is contained in:
Eli Peter 2026-06-05 10:16:30 -05:00 committed by GitHub
parent 55247b7fcd
commit 991c84a1eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
1464 changed files with 225448 additions and 1985 deletions

View file

@ -0,0 +1,4 @@
FROM python:3.11-slim@sha256:9a7765b36773a37061455b332f18e265e7f58f6fea9c419a550d2a8b0e9db834
WORKDIR /harness
COPY harness.py .
CMD ["python3", "harness.py"]

View file

@ -0,0 +1,21 @@
import os
import sys
def main() -> int:
payload = os.environ.get('NYX_PAYLOAD', '')
if not payload:
sys.stderr.write('error: NYX_PAYLOAD missing\n')
return 2
try:
result = eval(payload) # noqa: S307 sink under sandbox
except Exception as exc: # noqa: BLE001
sys.stderr.write(f'__NYX_SINK_ERROR__ {type(exc).__name__}: {exc}\n')
return 1
sys.stdout.write('__NYX_SINK_HIT__\n')
sys.stdout.write(f'eval-result={result}\n')
return 0
if __name__ == '__main__':
sys.exit(main())