mirror of
https://github.com/openai/codex-security.git
synced 2026-11-24 03:45:49 +08:00
* feat(cli): add YAML and JSON project configuration * refactor(cli): simplify project configuration and docs * fix(cli): repair configuration regressions and Windows tests * feat(sdk): share project configuration with the CLI Resolve project files and typed configuration into shared SDK scan settings. Keep native Codex configuration separate from scan options and expose public loadProjectConfig and resolveProjectConfig entry points. Reuse prompt-file handling and severity comparison across SDK and CLI paths. Preserve existing flags, file fields, defaults, output, and input protections. Cover equivalent inputs, prompt-backed workflows, and installed package APIs. * fix(sdk): allow reruns after blank scan prompts Only record additional scan instructions as required when the prompt builder actually includes them. Empty and whitespace-only SDK inputs should remain replayable, matching omitted prompts and empty prompt files. Exercise saved SDK recipes through the CLI rerun path while preserving the requirement to resupply real additional instructions. * refactor(config): use snake_case project keys * fix(sdk): leave missing ambient deep config unchanged * fix(sdk): compare normalized ambient config paths * fix(config): preserve path aliases and repeated YAML profiles * fix(config): address project configuration review feedback Preserve workflow identity and ambient defaults, restore bounded YAML expansion, and make required scan instructions replaceable on rerun. Complete configuration support for bulk and component scans, add starter generation and inspection, and centralize setting and provenance metadata. Document the operator trust boundary and verify the installed Node package. * fix(config): finish bulk inputs and portable starter checks Use the actual scan context for prompt protections, reject unsupported bulk scopes before starting work, and make nested starter schema hints relative. Keep path fixtures native on Windows and compare macOS temporary aliases canonically in the installed-package smoke check. * fix(config): preserve bulk prompt repository checks * fix(cli): preserve imported scan prompt errors Keep the existing validation-option error when rerunning imported scans and identify the scan-instructions option when it is supplied. Cover both rejected inputs without launching an import. --------- Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
13 lines
310 B
JSON
13 lines
310 B
JSON
{
|
|
"$schema": "./node_modules/@openai/codex-security/schemas/project-config.schema.json",
|
|
"scan": {
|
|
"mode": "standard",
|
|
"scope": { "paths": ["sdk/typescript/src"] }
|
|
},
|
|
"codex": {
|
|
"model": "gpt-5.6-sol",
|
|
"model_reasoning_effort": "xhigh"
|
|
},
|
|
"policy": { "fail_on_severity": "high" }
|
|
}
|