mirror of
https://github.com/openai/codex-security.git
synced 2026-12-04 01:43:46 +08:00
48 lines
2.1 KiB
Markdown
48 lines
2.1 KiB
Markdown
# Examples
|
|
|
|
Examples and templates for using Codex Security:
|
|
|
|
- [GitHub Actions with Amazon Bedrock](github-actions/README.md): a copyable
|
|
workflow for PR-diff and full-repository scans with AWS OIDC authentication,
|
|
SARIF uploads, and downloadable reports.
|
|
|
|
- [Findings CSV template](findings.csv): a header-only template for
|
|
`codex-security publish scan --to cloud --csv PATH`. Copy it, add one finding
|
|
per row, and validate the file before publishing:
|
|
|
|
```bash
|
|
npx @openai/codex-security publish scan --to cloud \
|
|
--csv /path/to/findings.csv --dry-run --json
|
|
```
|
|
|
|
See [Publish findings to Cloud](../sdk/typescript/README.md#publish-findings-to-cloud)
|
|
for the required columns and input rules.
|
|
|
|
- [Custom validation demo](custom-validation/README.md): run a scan with a custom
|
|
validation script against a deliberately vulnerable API using synthetic data.
|
|
Follow the demo's setup instructions, and do not deploy the example app.
|
|
|
|
- [Invoice Desk walkthrough](invoice-desk/walkthrough.md): scan a standalone
|
|
synthetic invoice app, inspect saved findings and coverage, explicitly request
|
|
a patch, and verify the original boundary. The app has ten seeded scenarios
|
|
and no dependencies or external services. Its
|
|
[CI workflow](invoice-desk/README.md#ci-and-openai-scans) runs behavior tests,
|
|
manual PR evaluations, and scheduled OpenAI baselines. Guides and expected
|
|
findings stay outside the scan input; scan results include finding metrics and
|
|
downloadable reports.
|
|
|
|
- [Azure Pipelines with Amazon Bedrock](azure-pipelines/README.md): centrally run
|
|
manual full or committed-diff scans against Azure Repos, with OIDC credentials,
|
|
report artifacts, and optional native SARIF publishing.
|
|
|
|
## npm package
|
|
|
|
This top-level `examples/` directory is available in the repository only; it is
|
|
not included in the `@openai/codex-security` npm package. The package is built
|
|
from [`sdk/typescript`](../sdk/typescript/package.json); its `files` list is the
|
|
source of truth for included files. The package check rejects files outside its
|
|
expected contents.
|
|
|
|
The bundled plugin's own example artifacts are separate and remain part of the
|
|
package.
|