docs(examples): add Azure Pipelines Bedrock scan example - #906
Draft
mldangelo-oai wants to merge 1 commit into
Draft
mldangelo-oai wants to merge 1 commit into
mldangelo-oai wants to merge 1 commit into
Conversation
Collaborator
Author
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: Didn't find any major issues. Hooray! 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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an Azure Pipelines example for running Codex Security against an Azure Repos
Git repository from a centrally owned tooling repository. The example uses the
existing CLI and AWS Toolkit instead of adding runtime integration code.
Changes
pinned CLI/Node/Python versions, and Bedrock OIDC authentication through an AWS
service connection.
repository using explicit repository-resource metadata. Preserve severity
policy failures while still publishing completed results; do not publish
failed exports or incomplete scans.
or authentication files.
additional PR-aware checkout/build-validation policy needed for automatic PR
checks. Link the example from the examples index and add focused regression
tests for its shell behavior and failure conditions.
Testing
bun test --timeout 30000 --seed 12345 tests-ts/azure-pipelines-example.test.ts tests-ts/cli-export.test.ts tests-ts/sarif.test.ts tests-ts/mock-scan.test.tsfromsdk/typescript.pnpm --dir sdk/typescript run types,build:ci, andformatpassed;explicit Prettier checks for the new YAML/Markdown/test files and
git diff --checkpassed.passed structural checks against Microsoft's Azure Pipelines schema after
expanding the conditional step; the schema's outdated task catalog was
excluded, with task names and inputs checked separately against current
publisher metadata and documentation.
--mock,passed with Node 24.21.0 and Python 3.14.7: the full scan exited 0; the diff scan
with a high-severity threshold exited 1; both exported SARIF 2.1.0 and retained
the expected reports. No model calls or live cloud connections were used.
tests encountered sandbox restrictions on process inspection and the default
state database. It is not claimed as passing.
Risk and rollout
This is example/documentation/test-only; there are no public CLI or runtime
changes. Runs are manual and native Advanced Security publishing is opt-in.
Adopters must configure a trusted pipeline, an authorized target repository,
an OIDC service connection, an approved Bedrock model, and publishing permissions
where applicable. Live OIDC authentication, Bedrock access, and Azure SARIF
ingestion still require validation in a configured test environment.
The example does not enroll repositories or enable automatic PR validation.
Repository contents and model output remain untrusted, and report artifacts can
contain sensitive source excerpts and vulnerability details.
Public disclosure review