Skip to content

Support Azure Entra OIDC in native Codex - #68457

Merged
pelikhan merged 12 commits into
mainfrom
copilot/fixcodex-entra-oidc
Oct 13, 2026
Merged

pelikhan merged 12 commits into
mainfrom
copilot/fixcodex-entra-oidc

Conversation

Copilot AI commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Native Codex still required an API key when configured for Azure GitHub OIDC, despite AWF supporting Entra token exchange. This change enables keyless execution through the AWF proxy.

  • Authentication: Suppress primary OpenAI key requirements only for Azure OIDC with AWF enabled; omit the managed proxy’s env_key, retaining Responses and requires_openai_auth = false.
  • Startup guard: Require fresh reflection confirming the selected OpenAI endpoint uses github-oidc/azure. Refuse startup if reflection or proxy configuration is unavailable.
  • Compatibility: Extend keyless behavior to inherited threat detection and same-provider fallbacks. Preserve API-key authentication, MCP credentials, and other-provider requirements.
  • Isolation and configuration: Keep token exchange and refresh in AWF, outside Codex. Document federated credentials, Azure OpenAI endpoints, and custom internal-gateway scopes.
permissions:
  contents: read
  id-token: write
engine:
  id: codex
  auth:
    type: github-oidc
    provider: azure
    azure-tenant-id: ${{ vars.AZURE_TENANT_ID }}
    azure-client-id: ${{ vars.AZURE_CLIENT_ID }}
    azure-scope: ${{ vars.AI_GATEWAY_SCOPE }}
  env:
    OPENAI_BASE_URL: ${{ vars.AI_GATEWAY_BASE_URL }}
network:
  allowed:
    - defaults
    - gateway.example.com
    - login.microsoftonline.com

Requires the AWF agent sandbox and an Entra federated credential matching the workflow’s GitHub OIDC issuer, subject, and audience.

Copilot AI changed the title [WIP] Support Azure Entra OIDC in the native Codex engine Support Azure Entra OIDC in native Codex Oct 13, 2026
Copilot AI requested a review from pelikhan October 13, 2026 15:10
@pelikhan
pelikhan marked this pull request as ready for review October 13, 2026 15:58
Copilot AI balanced review requested due to automatic review settings October 13, 2026 15:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Default external threat detection still requires CODEX_API_KEY and bypasses the new reflection guard.

1 open finding
What changed in this PR

Adds keyless Azure Entra OIDC support for native Codex through the AWF proxy.

Changes:

  • Suppresses API-key requirements and validates fresh proxy reflection.
  • Extends keyless handling to fallbacks and detection.
  • Adds tests and authentication documentation.
File Description
pkg/​workflow/​engine_fallback_models.go Skips OpenAI fallback secrets for Azure OIDC.
pkg/​workflow/​codex_engine.go Adds keyless authentication policy and environment handling.
pkg/​workflow/​codex_config.go Omits env_key in OIDC proxy configuration.
pkg/​workflow/​codex_azure_oidc_test.go Adds compiler and fallback coverage.
actions/​setup/​js/​codex_harness.cjs Adds reflection-based startup validation.
actions/​setup/​js/​codex_harness.test.cjs Tests keyless startup and failure cases.
docs/​src/​content/​docs/​reference/​auth.mdx Documents Entra OIDC configuration.
docs/​src/​content/​docs/​reference/​engines.md Lists OIDC as a Codex authentication option.
go.sum Removes obsolete dependency checksums.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +521 to +524
if isCodexAzureOIDC(workflowData) {
// Non-secret launch policy; the harness also verifies fresh AWF reflection.
env["GH_AW_CODEX_OIDC_AUTH"] = "azure"
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

External Codex detection now omits env_key for Azure OIDC and runs a fresh /reflect gate inside AWF before threat-detect. Fixed in ca2b637.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · gpt56 · 8.13 AIC · ⌖ 5.18 AIC · ⊞ 14.2K · ◷

Generated by Ponytail Reviewer for #68457

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · haiku45 · 4.99 AIC · ⌖ 12.8 AIC · ◇ 2.46 AIC · ⊞ 8.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Commit pushed: eba38ce

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Design Decision Gate — ADR Required

This PR makes significant changes to core business logic (173 new lines in pkg/, no implementation label needed) but does not have a linked Architecture Decision Record (ADR).

📄 Draft ADR committed: docs/adr/68457-keyless-codex-azure-entra-oidc-via-awf-proxy.md — review and complete it before merging.

🔒 This PR cannot merge until an ADR is linked in the PR body.

🔍 Evidence used
  • Business-logic additions: 173 (> 100 threshold); no .design-gate.yml override present
  • Architectural changes detected: new keyless-auth predicate isCodexAzureOIDC (pkg/workflow/codex_engine.go), conditional omission of env_key in the managed Codex proxy (pkg/workflow/codex_config.go), fallback-provider secret suppression (pkg/workflow/engine_fallback_models.go), and a runtime startup guard hasCodexAzureOIDCProxy (actions/setup/js/codex_harness.cjs)
  • No ADR found in the PR body, on the branch (docs/adr/), or in linked issue Support Azure Entra OIDC in the native Codex engine #68026
📋 What to do next
  1. Review the draft ADR committed to your branch — it was generated from the PR diff
  2. Complete the missing sections — confirm the Deciders line and refine the alternatives you actually weighed
  3. Commit the finalized ADR to docs/adr/ on your branch
  4. Reference the ADR in this PR body by adding a line such as:

    ADR: ADR-68457: Keyless Codex Azure Entra OIDC via the AWF Proxy

Once an ADR is linked in the PR body, this gate will re-run and verify the implementation matches the decision.

❓ Why ADRs Matter

ADRs create a searchable, permanent record of why the codebase looks the way it does — especially for security-sensitive decisions like moving from static API keys to federated credentials. Future contributors (and your future self) will thank you.

📋 Michael Nygard ADR Format Reference

An ADR must contain these four sections to be considered complete:

  • Context — What is the problem? What forces are at play?
  • Decision — What did you decide? Why?
  • Alternatives Considered — What else could have been done?
  • Consequences — What are the trade-offs (positive and negative)?

All ADRs are stored in docs/adr/ as Markdown files numbered by PR number.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · opus50 · 62.8 AIC · ⌖ 51.3 AIC · ⊞ 1.8K · ◷
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-10-13T16:15:37Z
review_event: REQUEST_CHANGES
top_themes:
  - Azure OIDC endpoint validation diverges from provider resolution
  - Threat-detection coverage does not prove keyless detector auth
files_reviewed:
  - actions/setup/js/codex_harness.cjs
  - actions/setup/js/codex_harness.test.cjs
  - docs/src/content/docs/reference/auth.mdx
  - docs/src/content/docs/reference/engines.md
  - pkg/workflow/codex_azure_oidc_test.go
  - pkg/workflow/codex_config.go
  - pkg/workflow/codex_engine.go
  - pkg/workflow/engine_fallback_models.go
comment_count: 2

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 35.7 AIC · ⌖ 5.8 AIC · ⊞ 21.3K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request changes

The Azure OIDC support is close, but I still see a real startup-path correctness risk and the detector coverage is not strong enough to prove the advertised keyless flow works outside the main Codex harness.

Blocking themes
  • The new hasCodexAzureOIDCProxy() guard does not reuse the same endpoint-resolution path as the later Codex provider configuration, so valid alias-normalized OpenAI endpoints can be rejected or the two code paths can drift.
  • The threat-detection claim is still under-tested: counting GH_AW_CODEX_OIDC_AUTH: azure in generated YAML does not prove the detector-side Codex configuration can actually authenticate without static OpenAI credentials.

Those are both in the critical path for a feature whose main promise is "keyless Codex via Azure OIDC".

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 35.7 AIC · ⌖ 5.8 AIC · ⊞ 21.3K
Comment /review to run again

Comment thread pkg/workflow/codex_azure_oidc_test.go Outdated
assert.Contains(t, lock, "--exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN")
assert.Contains(t, lock, "--exclude-env ACTIONS_ID_TOKEN_REQUEST_URL")
// The detector must inherit the same keyless execution policy.
assert.GreaterOrEqual(t, strings.Count(lock, "GH_AW_CODEX_OIDC_AUTH: azure"), 2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion only counts an env flag in the compiled YAML, so it can pass even when the threat-detection path still cannot authenticate keylessly.

💡 Why this matters

The change is claiming inherited threat-detection support, but this test never proves that the detector gets a usable Codex provider configuration or can run without CODEX_API_KEY/OPENAI_API_KEY. Counting GH_AW_CODEX_OIDC_AUTH: azure occurrences is too indirect for a security-sensitive auth path.

Fix snippet: assert on the generated detector configuration or the detection execution step directly, for example by verifying the detector-side Codex config omits env_key and still resolves the managed proxy base URL.

Without an end-to-end detector assertion, this PR can stay green while the first threat-detection run still dies on missing credentials.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced the env-count check with assertions for detector-side keyless config, the Azure OIDC env, and the fresh reflection gate. Fixed in ca2b637.

* @param {NodeJS.ProcessEnv} env
* @returns {boolean}
*/
function hasCodexAzureOIDCProxy(reflectData, env) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guard reimplements endpoint selection and then hard-codes endpoint.provider === "openai", so any reflect alias that the resolver accepts will still be rejected here and keyless Codex will fail to start.

💡 Why this matters

configureCodexProviderFromReflect() uses the shared resolver, but this safety gate scans reflectData.endpoints itself and only accepts the raw provider string openai. That means a valid alias-normalized OpenAI endpoint can be rejected up front here, and the two code paths can drift on selection rules over time.

Fix snippet: const resolved = resolveProviderEndpointFromReflect(...); return normalizeReflectProviderName(resolved?.endpoint?.provider) === "openai" && resolved?.endpoint?.auth_type === "github-oidc/azure";

Reusing the same resolver keeps the startup check and the actual provider rewrite on one selection path instead of hoping two different scans stay equivalent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The startup guard now uses the shared endpoint resolver and checks its normalized selected provider; a normalized-alias harness test covers it. Fixed in ca2b637.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /diagnosing-bugs, /tdd, and /codebase-design — requesting changes: the keyless-Codex fix does not cover the default external threat-detection path, and Azure WIF config has no compile-time validation.

📋 Key Themes & Highlights

Key Themes

  • Incomplete fix scope (highest severity): buildExternalDetectorCodexConfig (pkg/workflow/threat_detection_external.go) — the code path used by the default (external/threat-detect binary) threat-detection job — still hardcodes env_key = "CODEX_API_KEY" and performs no /reflect freshness check. This directly contradicts the PR description's claim ("Extend keyless behavior to inherited threat detection"). A prior reviewer flagged the same gap on codex_engine.go:524; it's still open in this diff.
  • Missing input validation: isCodexAzureOIDC doesn't verify azure-tenant-id/azure-client-id are set, unlike the existing validateGCPWIFEngineAuth pattern used for Gemini's GCP WIF. Misconfigured workflows will compile successfully and fail only at runtime with an opaque error.
  • Minor dead-code smell: a redundant if in configureCodexProviderFromReflect after an equivalent early return.

Positive Highlights

  • ✅ The core harness guard (hasCodexAzureOIDCProxy) correctly requires fresh reflection data and rejects persisted/stale reflect output — addresses a real TOCTOU concern.
  • ✅ Good test coverage in codex_harness.test.cjs and codex_azure_oidc_test.go for the main agent-job path (static-key proxy, wrong OIDC provider, disabled reflection, missing config).
  • ✅ Fallback-model secret suppression (engine_fallback_models.go) correctly mirrors the existing Anthropic WIF pattern.
  • ✅ Clear, well-structured documentation addition in auth.mdx with a concrete aw wrap example.

Investigation note: reviewed the full diff directly (586-line patch, well within budget); no triage/sub-agent was needed given the diff's manageable size and clear file boundaries.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 200.6 AIC · ⌖ 16.2 AIC · ⊞ 10.3K
Comment /matt to run again

const tomlContent = fs.readFileSync(codexConfigPath, "utf8");
const providerSectionPattern = /\[model_providers\.openai-proxy\][\s\S]*?(?=\n\[|$)/;
const baseLine = `base_url = "${resolved.baseUrl}"`;
if (!providerSectionPattern.test(tomlContent)) return { env, configured: false };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/tdd] if (!providerSectionPattern.test(tomlContent)) return { env, configured: false }; is immediately followed by the now-dead if (providerSectionPattern.test(tomlContent)) { ... }, which is always true at that point. The redundant branch should be flattened — it's a correctness smell, not just style, since it obscures the actual early-return path this PR relies on to trigger the new isCodexAzureOIDC && (!codexHome || !providerConfig.configured) fatal guard.

💡 Suggested cleanup
if (codexConfigPath) {
  const tomlContent = fs.readFileSync(codexConfigPath, "utf8");
  const providerSectionPattern = /\[model_providers\.openai-proxy\][\s\S]*?(?=\n\[|$)/;
  if (!providerSectionPattern.test(tomlContent)) return { env, configured: false };
  const baseLine = `base_url = "${resolved.baseUrl}"`;
  const rewritten = tomlContent.replace(providerSectionPattern, section => { ... });
  fs.writeFileSync(codexConfigPath, rewritten, "utf8");
}

The test suite does cover the "missing Codex proxy configuration" case (refuses to spawn when Codex proxy configuration is missing), which is good — but it tests behavior, not this specific dead-branch smell. Low severity, but worth a quick cleanup while the surrounding logic is fresh.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flattened the provider-section rewrite after its early return; the redundant condition is removed. Fixed in ca2b637.

}

// Entra token exchange is owned by the AWF sidecar, never by the Codex process.
func isCodexAzureOIDC(workflowData *WorkflowData) bool {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/codebase-design] isCodexAzureOIDC accepts auth.Type == "github-oidc" && auth.Provider == "azure" with no check that AzureTenantID/AzureClientID are non-empty, unlike the existing GCP WIF path (validateGCPWIFEngineAuth in compiler_validators.go), which fails the compile with a clear error listing missing fields.

💡 Why this is inconsistent and risky

Without azure-tenant-id/azure-client-id, this predicate still returns true (static secrets suppressed, env_key omitted, GH_AW_CODEX_OIDC_AUTH=azure set), while AWF has no way to actually perform the token exchange — the workflow compiles successfully but fails at runtime with an opaque error, deep in the AWF sidecar or the harness's "unable to configure Codex for the Azure OIDC AWF proxy" guard, rather than at gh aw compile/gh aw validate time.

The codebase already has the right pattern for this (GCP WIF): a dedicated validate*WIFEngineAuth function registered in the validator table (compiler_validators.go:259) that fails fast with an actionable message, e.g. engine.auth with provider=gcp requires the following fields: ....

Suggested fix: add an analogous validateAzureWIFEngineAuth (or extend isCodexAzureOIDC's caller) that requires azure-tenant-id and azure-client-id when auth.type == github-oidc && auth.provider == azure, and register it in the same validator table. This keeps failure modes consistent across providers and catches misconfiguration before any AWF run.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added compile-time Azure WIF validation requiring both azure-tenant-id and azure-client-id, alongside the existing GCP validation. Fixed in ca2b637.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot address the following outstanding work in one pass:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (pkg/workflow/codex_engine.go:524): The default external threat-detection path does not execute codex_harness.cjs: buildExternalDetectorExecutionStep only copies this environment into threat-detect --engine codex. Its separate buildExternalDetectorCodexConfig still emits env_key = "CODEX_API_KEY", so inherited Azure OIDC detection receives no key and fails; it also never performs this PR's fresh /reflect guard. Please make that external config keyless in this mode and add an equivalent reflection gate (or route detection through the harness). - Support Azure Entra OIDC in native Codex #68457 (comment)
  3. Review (pkg/workflow/codex_azure_oidc_test.go:119): This assertion only counts an env flag in the compiled YAML, so it can pass even when the threat-detection path still cannot authenticate keylessly. - Support Azure Entra OIDC in native Codex #68457 (comment)
  4. Review (actions/setup/js/codex_harness.cjs:572): This guard reimplements endpoint selection and then hard-codes endpoint.provider === "openai", so any reflect alias that the resolver accepts will still be rejected here and keyless Codex will fail to start. - Support Azure Entra OIDC in native Codex #68457 (comment)
  5. Review (actions/setup/js/codex_harness.cjs:716): [/tdd] if (!providerSectionPattern.test(tomlContent)) return { env, configured: false }; is immediately followed by the now-dead if (providerSectionPattern.test(tomlContent)) { ... }, which is always true at that point. The redundant branch should be flattened — it's a correctness smell, not just style, since it obscures the actual early-return path this PR relies on to trigger the new isCodexAzureOIDC && (!codexHome || !providerConfig.configured) fatal guard. - Support Azure Entra OIDC in native Codex #68457 (comment)
  6. Review (pkg/workflow/codex_engine.go:147): [/codebase-design] isCodexAzureOIDC accepts auth.Type == "github-oidc" && auth.Provider == "azure" with no check that AzureTenantID/AzureClientID are non-empty, unlike the existing GCP WIF path (validateGCPWIFEngineAuth in compiler_validators.go), which fails the compile with a clear error listing missing fields. - Support Azure Entra OIDC in native Codex #68457 (comment)

Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI.

Sous-chef head: eba38ce
Sous-chef work: 1867b96ef23396d0e946e31b4b659a5e4824fbedf7573989438b59e94b06fd72 4165553293b79201281b8b3ea4fb3e1119cd5d3dfaaf2f56896395ad2d1d2e75 68effe8c02a383850b6e309e5cce8a89a8b891aa8a0abbb128b8e20b5a662a81 a4f8d9b98e0b0775bc0afb7a1d6ffbd77a7d8985c79cd817a7ac72c26a7a4d16 cec84417c364f26c335fda6ce77f2d9784a92d1568a12ecbb9bd3e578a2a8b47
Sous-chef state: de9415cd1f8631f156895334a04846fabfc17e9bc06d952286605e93ccce4846

Generated by 👨‍🍳 PR Sous Chef · pi · haiku45 · 9.35 AIC · ⌖ 10.3 AIC · ⊞ 1.1K · ◷
Comment /souschef to run again

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot refactor the Azure IDC functions and ensure the PI Agentic Engine supports them as well. Add Smoke Azure PI and Smoke Azure Codex workflows.

Copilot AI commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot refactor the Azure IDC functions and ensure the PI Agentic Engine supports them as well. Add Smoke Azure PI and Smoke Azure Codex workflows.

Implemented shared Azure OIDC handling for Pi, added fail-closed fresh /reflect validation, and added Smoke Azure PI/Codex workflows. Committed as dacbd1e.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot address the following outstanding work in one pass:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check impacted-go-tests (FAILURE): https://github.com/github/gh-aw/actions/runs/38455608703/job/115497663089.

Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI.

Sous-chef head: da2b8c1
Sous-chef work: 42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac
Sous-chef state: 184d24780bbea16102840a8b8815950c21e1bbef62c8f349447b727470bb8c30

Generated by 👨‍🍳 PR Sous Chef · pi · haiku45 · 3.33 AIC · ⌖ 9.07 AIC · ⊞ 1.1K · ◷
Comment /souschef to run again

Copilot AI commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address the following outstanding work in one pass:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes....

Merged latest main via make merge-main in f663b2eb. Fixed the CI failure in 02d9a5ed: the Azure Codex smoke workflow now selects gpt-5.3-codex instead of the non-Codex o4-mini-aw; its lock file is regenerated and the existing test is unchanged. Focused model/authentication tests and make agent-report-progress pass, including 402 JavaScript tests and workflow-lock consistency. Independent code review found no issues; CodeQL timed out. No CI was triggered. The five earlier review threads are already substantively answered; marking them resolved requires a maintainer because thread-resolution tooling is unavailable here.

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot do a security review of the compiled lock.yml, make sure secrets are properly configured

Copilot AI commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot do a security review of the compiled lock.yml, make sure secrets are properly configured

Reviewed both compiled Azure smoke locks. Azure auth is keyless as intended: the agent jobs alone receive id-token: write, and tenant/client IDs, scope, and gateway URL come from workflow variables; no Azure API-key secret is referenced. Actions are SHA-pinned.

One conditional medium hardening concern: both locks place GH_AW_DEFAULT_OTLP_HEADERS at workflow-level (smoke-azure-codex.lock.yml:73-78, smoke-azure-pi.lock.yml:73-78), which reaches the activation job without the aoai-model environment. If configured as a repository/organization secret, activation receives it. AWF excludes it from the agent container, but that does not narrow the runner job environment. Keep credential-bearing OTLP headers scoped to the protected environment/jobs that need them. I could not verify secret scope metadata or Azure’s federated trust policy, and did not access secret values.

Strict source compilation passed. The dry-run scanner gate did not pass: it reported generated-lock lint issues and repo-wide runner-guard findings; Poutine and ShellCheck passed. No workflow was dispatched.

@pelikhan
pelikhan merged commit a14b73f into main Oct 13, 2026
41 checks passed
@pelikhan
pelikhan deleted the copilot/fixcodex-entra-oidc branch October 13, 2026 23:30
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.91.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Azure Entra OIDC in the native Codex engine

4 participants