Skip to content

Add OpenAI workload identity federation for Codex - #75927

Merged
pelikhan merged 4 commits into
mainfrom
copilot/support-engine-auth-provider-openai
Nov 8, 2026
Merged

pelikhan merged 4 commits into
mainfrom
copilot/support-engine-auth-provider-openai

Conversation

Copilot AI commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex workflows calling the OpenAI API currently require a long-lived API key. This adds engine.auth.provider: openai to configure GitHub OIDC-based authentication through the AWF API proxy.

  • Configuration and validation — Add OpenAI identity-provider and service-account fields, require them and an audience, and pass them to the proxy.
  • Codex runtime — Skip static API-key wiring for OpenAI WIF, and require fresh AWF reflection to confirm the configured OpenAI WIF endpoint before launching Codex.
  • Related paths and docs — Apply the keyless configuration to fallback and threat-detection paths, and document the workflow configuration.
permissions:
  id-token: write
engine:
  id: codex
  auth:
    type: github-oidc
    provider: openai
    identity-provider-id: ${{ vars.OPENAI_IDENTITY_PROVIDER_ID }}
    service-account-id: ${{ vars.OPENAI_SERVICE_ACCOUNT_ID }}
    audience: https://api.openai.com/v1

Requires an AWF API-proxy release that supports OpenAI WIF.

Copilot AI changed the title [WIP] Add engine.auth provider for OpenAI API Add OpenAI workload identity federation for Codex Nov 8, 2026
Copilot AI requested a review from pelikhan November 8, 2026 17:46
@pelikhan
pelikhan marked this pull request as ready for review November 8, 2026 17:51
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 17:51
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification 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 PR Specification Reviewer · gpt56 · ~3 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 1.7K · ◷

Generated by PR Specification Reviewer for #75927

@github-actions

github-actions Bot commented Nov 8, 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 Nov 8, 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

github-actions Bot commented Nov 8, 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 · routed: gpt56 max · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

❌ Design Decision Gate 🏗️ failed to deliver outputs during design decision gate check.

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Generated by Ponytail Reviewer for #75927

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Warning

The push_to_pull_request_branch operation failed: Cannot verify branch protection rules for "copilot/support-engine-auth-provider-openai": Resource not accessible by integration - https://docs.github.com/rest/branches/branch-protection\#get-branch-protection. Reading classic branch protection requires a GitHub App installation token or fine-grained PAT with Administration: read repository permission; GITHUB_TOKEN cannot provide this permission. Push blocked to prevent accidental writes to protected branches.. The code changes were not applied.

🏗️ Design Decision Gate — ADR Required

This PR makes significant changes to core business logic (>100 new lines) but does not have a linked Architecture Decision Record (ADR).

📄 Draft ADR committed: docs/adr/75927-add-openai-wif-for-codex.md — review and complete it before merging.

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

📋 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 — add context the AI could not infer, refine the decision rationale, and confirm the alternatives and trade-offs.

  3. Commit the finalized ADR to docs/adr/ on your branch.

  4. Reference the ADR in this PR body by adding:

    ADR: ADR-75927: Add OpenAI WIF for Codex (link unavailable: invalid HTTPS URL)

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

🔎 Gate evidence
📋 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/ and are numbered by PR number.

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: gpt56 max · ~4 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷
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.

Reviewed the changed lines and found no high-confidence correctness or security issues that should block merge. The OpenAI WIF wiring is consistently propagated through validation, compiler environment setup, Codex startup checks, and documentation. Note: this was a static review only; tests were not run per the review constraints.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.6K
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.

What this change does: This adds OpenAI Workload Identity Federation as a Codex authentication mode and carries its configuration through compilation, the runtime harness, reflection checks, fallbacks, threat detection, tests, and docs. The keyless path is guarded by fresh AWF reflection before Codex starts.

Should fix:

  1. Merge the duplicated Codex OIDC guards (actions/setup/js/codex_harness.cjs:L607)

    • What this is: The Azure and OpenAI helpers perform the same environment and reflection checks, and main repeats the same failure branch for each mode.
    • Problem: Every new OIDC mode requires edits in two wrappers and two startup branches, leaving unnecessary near-copy code in the harness.
    • Fix: Parameterize one hasCodexOIDCProxy(reflectData, env, authProvider) and use oidcAuth for one shared startup check.
    • If we skip it: The two keyless paths can accumulate different checks and the harness stays needlessly larger.

Nice to have:

  1. Collapse the fallback OIDC wrapper (pkg/workflow/engine_fallback_models.go:L125)

    • What this is: usesOIDCForOpenAI only calls the now-private usesAzureOIDCForOpenAI helper and adds the Codex OpenAI case afterward.
    • Problem: This creates an extra call layer for the fallback secret and environment paths.
    • Fix: Rename the existing switch to usesOIDCForOpenAI and add isCodexOpenAIWIF(data) in its codex case, then delete the wrapper.
    • If we skip it: The fallback policy remains split across two helpers that must change together.

Verdict: fix 1 first.
Lean: -10 lines possible.

Generated by ✂️ Ponytail Reviewer for #75927 · codex · routed: gpt56 max · ~5 AIC · ⌖ ~1 AIC · ⊞ 118
Comment /ponytail to run again

Comment thread actions/setup/js/codex_harness.cjs Outdated
return hasAzureOIDCProviderEndpoint(reflectData, "openai");
}

function hasCodexOpenAIWIFProxy(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.

Should fix: This is a second copy of hasCodexAzureOIDCProxy; the two wrappers only differ in the auth-mode literal. Parameterize one hasCodexOIDCProxy(reflectData, env, authProvider) and use it for both modes so the gate cannot drift and these duplicate lines disappear.

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.

Fixed in e71afa3: both auth modes now use hasCodexOIDCProxy(reflectData, env, authProvider). The updated harness and reflection suites pass (367 tests).

Comment thread pkg/workflow/engine_fallback_models.go Outdated
}

func usesOIDCForOpenAI(data *WorkflowData) bool {
return usesAzureOIDCForOpenAI(data) || data != nil && data.EngineConfig != nil &&

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.

Nice to have: usesOIDCForOpenAI adds a wrapper around a private helper that now has only one caller. Fold the OpenAI case into that existing switch (and rename it to usesOIDCForOpenAI) to remove the extra layer and keep Codex/Pi fallback policy in one place.

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.

Fixed in e71afa3: folded Codex OpenAI WIF into the existing Codex/Pi switch and renamed it usesOIDCForOpenAI, removing the wrapper.

@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: two validation gaps can silently produce the wrong auth path.

📋 Key Themes and Highlights

Key Themes

  • Silent fallback to static key: with firewall: false, provider: openai passes validation, but isCodexOpenAIWIF returns false and CODEX_API_KEY is still wired. A probe confirmed this. The Azure path has the same firewall gate.
  • Engine scoping: validateOpenAIWIFEngineAuth does not restrict provider: openai to engine.id: codex. A probe confirmed engine.id: claude passes and emits a secret validation step.
  • Test coverage: the fallback WIF branch (usesOIDCForOpenAI) and the OpenAI reflection guard in threat detection have no Go tests.
  • Unrelated change: buildPullAWFContainersStep now splits on CR as well as LF. This is not described in the PR body. Confirm that lock output is unchanged or split it out.

Positive Highlights

  • ✅ The field rename to ServiceAccountID is applied consistently. The JSON key is unchanged.
  • ✅ codexOIDCAuthMode centralizes the Azure and OpenAI mode selection cleanly.
  • ✅ Targeted Go tests for the WIF and validation paths pass, and gofmt is clean.

Limits of This Review

  • JS tests (awf_reflect.test.cjs, codex_harness.test.cjs) were not run. npm ci failed on a sandbox TLS certificate error, so the JS changes are unverified here.
  • The AWF release pinned by DefaultFirewallVersion (v0.29.7) was not checked for github-oidc/openai support. The PR body says a compatible release is required.

@copilot please address the review comments above, starting with the firewall fallback and engine-scoping gaps.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 5.4K
Comment /matt to run again

auth := workflowData.EngineConfig.Auth
return auth.Type == "github-oidc" && auth.Provider == "openai" &&
auth.OpenAIIdentityProviderID != "" && auth.ServiceAccountID != "" &&
auth.Audience != "" && isFirewallEnabled(workflowData)

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.

[/diagnosing-bugs] With the firewall disabled, isOpenAIWIFWithAWF returns false, so the keyless path is skipped without any error. Validation still passes, and buildCodexExecutionEnv silently wires the static CODEX_API_KEY path.

💡 Suggested fix

Reject this combination in validateOpenAIWIFEngineAuth with a clear error, for example "engine.auth with provider=openai requires the firewall to be enabled". Add a regression test in codex_azure_oidc_test.go that asserts compilation fails when firewall: false is combined with OpenAI WIF. The Azure path has the same firewall gate, so consider fixing both together.

@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.

Fixed in e71afa3: OpenAI WIF now fails compilation when the firewall is disabled. A non-strict sandbox-opt-out regression verifies the WIF-specific error rather than a generic sandbox rejection.

return nil
}
auth := workflowData.EngineConfig.Auth
if auth.Type != "github-oidc" || auth.Provider != "openai" {

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] validateOpenAIWIFEngineAuth checks only provider: openai, not engine.id: codex. A probe confirmed that engine.id: claude with provider: openai passes validation and emits a secret validation step. The schema accepts openai without an engine constraint, so this validator is the only guard.

💡 Suggested test and fix

Add an engine check that rejects provider: openai for non-codex engines. Then add a table-driven test in codex_azure_oidc_test.go covering codex (accepted) and claude (rejected).

@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.

Fixed in e71afa3: validation requires Codex and the OpenAI inference provider. Compilation tests cover accepted Codex auth and rejected Claude/GitHub-inference configurations.

func codexAzureOIDCReflectionGuard() string {
script := `fetch("http://api-proxy:10000/reflect", { signal: AbortSignal.timeout(60000) }).then(async response => {
func codexOIDCReflectionGuard(provider string) string {
script := fmt.Sprintf(`fetch("http://api-proxy:10000/reflect", { signal: AbortSignal.timeout(60000) }).then(async response => {

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.

[/diagnosing-bugs] provider is interpolated into the JavaScript source with fmt.Sprintf before shell escaping. The only callers today pass azure or openai, so this is safe now, but it is fragile: a future provider string containing a quote or backtick would break the generated script.

💡 Suggested fix

Pass a fixed label instead of config-derived text. For example, select between two literal guard strings in the caller, so the JS template never receives user-controlled values.

@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.

Fixed in e71afa3: the auth type and error message are encoded as quoted literals before insertion into JavaScript, then the script is shell-escaped. Added a quote-containing provider regression.

Comment thread pkg/workflow/engine_fallback_models.go Outdated
}
}

func usesOIDCForOpenAI(data *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.

[/tdd] usesOIDCForOpenAI now skips the fallback OpenAI secret name and env for Codex WIF, but no test covers this branch. The only fallback test is the Pi Azure case, so a regression here would pass unnoticed.

💡 Suggested test

Add a case to engine_fallback_models_test.go with codex, provider: openai WIF, and a configured fallback model. Assert that fallbackProviderSecretNames omits the OpenAI key and that applyFallbackProviderEnv does not set it.

@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.

Fixed in e71afa3: added Codex OpenAI WIF fallback coverage for omitted secret names, omitted API-key environment variables, preserved keyless auth, and an Anthropic fallback retaining its key.


// Split the generated YAML into individual lines so each is a separate entry
lines := strings.Split(b.String(), "\n")
lines := strings.FieldsFunc(b.String(), func(r rune) bool { return r == '\n' || r == '\r' })

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] The change from strings.Split to strings.FieldsFunc in buildPullAWFContainersStep is unrelated to WIF and is not mentioned in the PR description. Its only behavior change is that CR is now treated as a separator. Empty entries were already skipped by the existing line != "" check.

💡 Suggested fix

Move this into its own PR, or call it out in the description with a test. Confirm that existing .lock.yml output is byte-identical after the change.

@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.

Fixed in e71afa3: removed CR normalization and restored the original LF-only behavior. Uses strings.Lines with LF trimming because latest main's linter rejects newline strings.Split; empty entries remain skipped.

if engineID == "codex" && isCodexAzureOIDC(threatDetectionData) {
npmPathSetup += " && " + codexAzureOIDCReflectionGuard()
if engineID == "codex" && (isCodexAzureOIDC(threatDetectionData) || isCodexOpenAIWIF(threatDetectionData)) {
npmPathSetup += " && " + codexOIDCReflectionGuard(threatDetectionData.EngineConfig.Auth.Provider)

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] No test asserts that the threat-detection step emits codexOIDCReflectionGuard for OpenAI WIF. The new github-oidc/openai check string and error message are unverified by Go tests, and the JS guard tests were not run in this review.

💡 Suggested test

Add a step-generation test for engine.id: codex with provider: openai WIF. Assert that the generated script contains github-oidc/openai. This guard is the only runtime proof that the proxy is using OIDC, so it needs coverage.

@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.

Fixed in e71afa3: the compiled detection-job test asserts the fresh reflection URL, github-oidc/openai, and its guard error message, plus omitted static-key configuration. Focused Go tests and all 367 harness/reflection JS tests pass.

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

The pinned AWF v0.29.7 does not forward the required OpenAI WIF identifiers, causing default-generated workflows to fail at startup.

5 open issues
What changed in this PR

Adds support in gh-aw for Codex to authenticate to OpenAI through the AWF API proxy using GitHub OIDC, without a long-lived API key.

Changes:

  • Adds OpenAI federation configuration, required-field validation, schema support, and editor completions.
  • Extends keyless Codex authentication and fresh reflection checks to execution, fallback models, and threat detection.
  • Adds authentication tests and configuration documentation.
File Description
pkg/​workflow/​threat_detection_external.go Extends keyless detector configuration and reflection guards.
pkg/​workflow/​openai_oidc.go Identifies OpenAI WIF configurations using AWF.
pkg/​workflow/​engine.go Adds identity fields and proxy environment mappings.
pkg/​workflow/​engine_fallback_models.go Skips static OpenAI keys for WIF fallbacks.
pkg/​workflow/​engine_config_test.go Tests OpenAI authentication parsing and environment mappings.
pkg/​workflow/​compiler_validators.go Validates required OpenAI federation fields.
pkg/​workflow/​compiler_orchestrator_engine_test.go Updates assertions for the shared service-account field.
pkg/​workflow/​codex_engine.go Selects keyless OpenAI authentication during execution.
pkg/​workflow/​codex_config.go Omits static-key configuration for OpenAI WIF.
pkg/​workflow/​codex_azure_oidc_test.go Adds OpenAI WIF authentication and compilation tests.
pkg/​parser/​schemas/​main_workflow_schema.json Defines OpenAI provider and identity configuration.
docs/​src/​content/​docs/​reference/​glossary.md Expands authentication terminology to include OpenAI WIF.
docs/​src/​content/​docs/​reference/​frontmatter-full.md Documents the new provider and identity field.
docs/​src/​content/​docs/​reference/​auth.mdx Adds OpenAI federation setup and runtime requirements.
docs/​public/​editor/​autocomplete-data.json Adds OpenAI authentication completions.
actions/​setup/​js/​codex_harness.test.cjs Tests OpenAI WIF startup and endpoint checks.
actions/​setup/​js/​codex_harness.cjs Requires matching fresh reflection before WIF startup.
actions/​setup/​js/​awf_reflect.test.cjs Tests provider-specific OIDC endpoint validation.
actions/​setup/​js/​awf_reflect.cjs Generalizes OIDC reflection checks across providers.

Review effort: Max (auto)

if len(missing) > 0 {
return fmt.Errorf("engine.auth with provider=openai requires the following fields: %s", strings.Join(missing, ", "))
}
return nil
network:
allowed:
- defaults
- api.openai.com
if err := validateGCPWIFEngineAuth(workflowData); err != nil {
return err
}
return validateOpenAIWIFEngineAuth(workflowData)
Comment on lines +629 to +630
if engineID == "codex" && (isCodexAzureOIDC(threatDetectionData) || isCodexOpenAIWIF(threatDetectionData)) {
npmPathSetup += " && " + codexOIDCReflectionGuard(threatDetectionData.EngineConfig.Auth.Provider)
Comment on lines +629 to +630
if engineID == "codex" && (isCodexAzureOIDC(threatDetectionData) || isCodexOpenAIWIF(threatDetectionData)) {
npmPathSetup += " && " + codexOIDCReflectionGuard(threatDetectionData.EngineConfig.Auth.Provider)
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (actions/setup/js/codex_harness.cjs:607): Should fix: This is a second copy of hasCodexAzureOIDCProxy; the two wrappers only differ in the auth-mode literal. Parameterize one hasCodexOIDCProxy(reflectData, env, authProvider) and use it for both modes so the gate cannot drift and these duplicate lines disappear. - Add OpenAI workload identity federation for Codex #75927 (comment)
  3. Review (pkg/workflow/engine_fallback_models.go:125): Nice to have: usesOIDCForOpenAI adds a wrapper around a private helper that now has only one caller. Fold the OpenAI case into that existing switch (and rename it to usesOIDCForOpenAI) to remove the extra layer and keep Codex/Pi fallback policy in one place. - Add OpenAI workload identity federation for Codex #75927 (comment)
  4. Review (pkg/workflow/openai_oidc.go:10): [/diagnosing-bugs] With the firewall disabled, isOpenAIWIFWithAWF returns false, so the keyless path is skipped without any error. Validation still passes, and buildCodexExecutionEnv silently wires the static CODEX_API_KEY path. - Add OpenAI workload identity federation for Codex #75927 (comment)
  5. Review (pkg/workflow/compiler_validators.go:774): [/tdd] validateOpenAIWIFEngineAuth checks only provider: openai, not engine.id: codex. A probe confirmed that engine.id: claude with provider: openai passes validation and emits a secret validation step. The schema accepts openai without an engine constraint, so this validator is the only guard. - Add OpenAI workload identity federation for Codex #75927 (comment)
  6. Review (pkg/workflow/threat_detection_external.go:728): [/diagnosing-bugs] provider is interpolated into the JavaScript source with fmt.Sprintf before shell escaping. The only callers today pass azure or openai, so this is safe now, but it is fragile: a future provider string containing a quote or backtick would break the generated script. - Add OpenAI workload identity federation for Codex #75927 (comment)
  7. Review (pkg/workflow/engine_fallback_models.go:124): [/tdd] usesOIDCForOpenAI now skips the fallback OpenAI secret name and env for Codex WIF, but no test covers this branch. The only fallback test is the Pi Azure case, so a regression here would pass unnoticed. - Add OpenAI workload identity federation for Codex #75927 (comment)
  8. Review (pkg/workflow/threat_detection_external.go:277): [/codebase-design] The change from strings.Split to strings.FieldsFunc in buildPullAWFContainersStep is unrelated to WIF and is not mentioned in the PR description. Its only behavior change is that CR is now treated as a separator. Empty entries were already skipped by the existing line != ""check. - Add OpenAI workload identity federation for Codex #75927 (comment)
  9. Review (pkg/workflow/threat_detection_external.go:630): [/tdd] No test asserts that the threat-detection step emits codexOIDCReflectionGuard for OpenAI WIF. The new github-oidc/openai check string and error message are unverified by Go tests, and the JS guard tests were not run in this review. - Add OpenAI workload identity federation for Codex #75927 (comment)
  10. Fix failing check impacted-go-tests (FAILURE): https://github.com/github/gh-aw/actions/runs/42507056144/job/128811948249.
  11. Fix failing check impacted-go-tests (FAILURE): https://github.com/github/gh-aw/actions/runs/42506257595/job/128809544545.
  12. Fix failing check safe_outputs (FAILURE): https://github.com/github/gh-aw/actions/runs/42507056074/job/128813493610.

Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI.

Sous-chef requested-head: f492e0d
Sous-chef requested-work: 15aeb741c850bbb52579dbb6a91090349389e6479b325bb49569380c05226319 26dacddd12014c0d66d84dae4c131c2a7d8274f6a5fa2aa0c7ced13b6cb9d305 42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac 67f0cee55a2a8fe8e8675f82c22e742eba66f28bee87e08591b46cc2acb33d30 9326fa3c269250b2d33b9e90e03fb7f4af970b1a1a2346e7e4c6e792d7287ae2 aef4106ba42d751ef14cd6d92f4b4c7447795d7c7fd13559cac6f5af29f53b87 b1807e6d3a02d309b42159aa9243ad98843e99b8b5dc3d18b5df62d7c0c4d3ef be9ce1ac39331a9c12ed4f4fbe7deb9dc64f64cce76afc8cc4287632caab17ec c465c8dfba9a547d0f7ae96a3642ec00116f9b01c40d87a9fb8a1f78c83ebfaf c7cf93e497befdd5e698d00101b0703e4101fe4133d86d433f7c170d07402b7e
Sous-chef requested-state: 99c83239ae5f8efd77df0d1dde2304ecea7f12cb3edc6a0ff3dd94e9e14a0ae7

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~9 AIC · ⌖ ~12 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

Copilot AI commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

Copilot assignment requested for the following outstanding work:...

Assignment running:

  1. Update this branch with latest main using make merge-main and preserve the intended changes.
  2. Share the Codex Azure/OpenAI OIDC proxy gate.
  3. Consolidate fallback OIDC policy.
  4. Reject OpenAI WIF with the firewall disabled.
  5. Reject OpenAI WIF for non-Codex engines.
  6. Safely encode the detection reflection guard provider.
  7. Add Codex WIF fallback regression coverage.
  8. Revert unrelated container-script splitting changes.
  9. Add OpenAI WIF detection reflection-guard coverage and run JS tests.
    10–11. Investigate and fix both impacted-go-tests failures.
  10. Investigate safe_outputs failure and address the ADR requirement where possible.
    No PR merge or workflow dispatch will be performed.

Sous-chef requested-head: f492e0d
Sous-chef requested-work: 15aeb741c850bbb52579dbb6a91090349389e6479b325bb49569380c05226319 26dacddd12014c0d66d84dae4c131c2a7d8274f6a5fa2aa0c7ced13b6cb9d305 42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac 67f0cee55a2a8fe8e8675f82c22e742eba66f28bee87e08591b46cc2acb33d30 9326fa3c269250b2d33b9e90e03fb7f4af970b1a1a2346e7e4c6e792d7287ae2 aef4106ba42d751ef14cd6d92f4b4c7447795d7c7fd13559cac6f5af29f53b87 b1807e6d3a02d309b42159aa9243ad98843e99b8b5dc3d18b5df62d7c0c4d3ef be9ce1ac39331a9c12ed4f4fbe7deb9dc64f64cce76afc8cc4287632caab17ec c465c8dfba9a547d0f7ae96a3642ec00116f9b01c40d87a9fb8a1f78c83ebfaf c7cf93e497befdd5e698d00101b0703e4101fe4133d86d433f7c170d07402b7e
Sous-chef requested-state: 99c83239ae5f8efd77df0d1dde2304ecea7f12cb3edc6a0ff3dd94e9e14a0ae7

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.2

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 engine.auth provider: openai (workload identity federation for the OpenAI API)

4 participants