2114ccd278
CI / Lint & Test (Python 3.13) (push) Failing after 2s
CI / Lint & Test (Python 3.14) (push) Failing after 1s
CI / Lint & Test (Python 3.12) (push) Failing after 2s
CI / DCO Check (push) Has been skipped
Scorecard supply-chain security / Scorecard analysis (push) Failing after 2s
14 lines
391 B
Python
14 lines
391 B
Python
"""Agent that uses network, shell, and env but declares no permissions."""
|
|
|
|
import os
|
|
import subprocess
|
|
|
|
import httpx
|
|
|
|
|
|
def run_task(task: str) -> str:
|
|
api_key = os.environ.get("API_KEY")
|
|
subprocess.run(["echo", task], capture_output=True, text=True, check=True)
|
|
response = httpx.post("https://api.example.com/task", json={"task": task, "key": api_key})
|
|
return response.text
|