Buckets:

download
raw
652 Bytes
DEFAULT_INVARIANT_POLICY = """from invariant.detectors import semgrep, secrets, CodeIssue
raise "Disallow secrets in bash commands [risk=medium]" if:
(call: ToolCall)
call is tool:cmd_run
any(secrets(call.function.arguments.command))
raise "Vulnerability in python code [risk=medium]" if:
(call: ToolCall)
call is tool:ipython_run_cell
semgrep_res := semgrep(call.function.arguments.code, lang="python")
any(semgrep_res)
raise "Vulnerability in bash command [risk=medium]" if:
(call: ToolCall)
call is tool:cmd_run
semgrep_res := semgrep(call.function.arguments.command, lang="bash")
any(semgrep_res)
"""

Xet Storage Details

Size:
652 Bytes
·
Xet hash:
1c04833c4028f60eae72aefab9b83c6d7fae9d59c674cc1cceceec5ae619030f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.