docs(examples): add GitHub Actions workflow for Bedrock scans - #901
mldangelo-oai wants to merge 2 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Add a copyable GitHub Actions example for running Codex Security through Amazon Bedrock. It connects existing diff-scan and SARIF-export commands to AWS OIDC, GitHub Code Scanning, and downloadable reports.
Changes
examples/github-actions/codex-security.ymlfor same-repository PR-diff scans and manual full scans, with an optional weekly schedule.Testing
actionlint examples/github-actions/codex-security.ymlpassed, including ShellCheck.bun test --timeout 30000 tests-ts/github-actions-example.test.ts tests-ts/mock-scan.test.ts tests-ts/targets.test.ts tests-ts/cli-export.test.ts tests-ts/sarif.test.ts tests-ts/config.test.tspassed: 98 tests, 4 platform/sandbox-specific skips, no failures. This includes all 9 workflow regression tests.pnpm --dir sdk/typescript run build:pluginpassed using this PR's verified native bundle.build,types, andformatpassed, along with explicit Prettier checks of all changed files andgit diff --check.--mockto avoid inference. Full scans exited 0; severity-gated diff scans exited 1. Both exported valid SARIF 2.1.0 with synthetic findings.nonewhile preserving high reasoning effort.Risk and rollout
The workflow is an example under
examples/, not an active workflow in this repository. Adoption requires copying it into a destination repository and configuring its variables, AWS trust, and GitHub Code Scanning access. It is for trusted same-repository contributors and skips fork, draft, and Dependabot-triggered PRs; the README explains when protected-environment approval is needed.No public CLI/API or shipped package changes. Reports may contain source snippets and vulnerability details, so adopters must review repository access and retention. The optional schedule remains commented out.
Public disclosure review