mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 20:49:28 +00:00
ci: green again -- format and lint the whole tree; push the scan and runner images to GHCR on tags
CI and the release job check `ruff format --check .` and `ruff check .` over the whole repository, while the local gate checked only src and tests, so eight benchmark scripts drifted and the v2.0.0 release job stopped before building. The fixes are formatting, two noqa comments and one renamed loop variable; no script computes anything differently. The local gate now checks the whole tree. The release workflow gains an images job: Dockerfile -> ghcr.io/<owner>/openultrasast, plane/Dockerfile.runner -> ghcr.io/<owner>/openultrasast-runner, tagged with the version, and the digests written to the job summary. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c978de9ff8
commit
d1aabf0f66
@@ -40,8 +40,34 @@ from openultrasast.preprocess import build_file_target, enumerate_source_files
|
||||
# The model names a family in its own words; the protocol scores three. Fixed before any v2 pin is hunted.
|
||||
FAMILY_WORDS = {
|
||||
"untrusted_destination": ("ssrf", "server-side request", "open redirect", "redirect", "url fetch", "request forgery"),
|
||||
"config_secrets": ("cors", "debug", "secret", "hardcoded", "hard-coded", "credential", "misconfig", "configuration", "tls", "certificate"),
|
||||
"injection": ("inject", "sql", "sqli", "nosql", "command", "rce", "code execution", "eval", "template", "ssti", "xss", "deserializ", "ldap", "xpath"),
|
||||
"config_secrets": (
|
||||
"cors",
|
||||
"debug",
|
||||
"secret",
|
||||
"hardcoded",
|
||||
"hard-coded",
|
||||
"credential",
|
||||
"misconfig",
|
||||
"configuration",
|
||||
"tls",
|
||||
"certificate",
|
||||
),
|
||||
"injection": (
|
||||
"inject",
|
||||
"sql",
|
||||
"sqli",
|
||||
"nosql",
|
||||
"command",
|
||||
"rce",
|
||||
"code execution",
|
||||
"eval",
|
||||
"template",
|
||||
"ssti",
|
||||
"xss",
|
||||
"deserializ",
|
||||
"ldap",
|
||||
"xpath",
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +208,16 @@ def main() -> int:
|
||||
result["root"] = "/case"
|
||||
out.write_text(json.dumps(result, indent=2) + "\n")
|
||||
print(
|
||||
json.dumps({"case": case["id"], "pin": label, "findings": len(result["findings"]), "hunts": f"{result['completed']}/{result['questions']}", "usd": result["cost_usd"], "total_usd": round(sum(spent), 4)}),
|
||||
json.dumps(
|
||||
{
|
||||
"case": case["id"],
|
||||
"pin": label,
|
||||
"findings": len(result["findings"]),
|
||||
"hunts": f"{result['completed']}/{result['questions']}",
|
||||
"usd": result["cost_usd"],
|
||||
"total_usd": round(sum(spent), 4),
|
||||
}
|
||||
),
|
||||
flush=True,
|
||||
)
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user