Skip to content

[safe-output-integrator] test: cover safe-output authorization coverage - #79321

Merged
pelikhan merged 3 commits into
mainfrom
fix/safe-output-authorization-coverage-e660e3ef59454c3a
Nov 19, 2026
Merged

pelikhan merged 3 commits into
mainfrom
fix/safe-output-authorization-coverage-e660e3ef59454c3a

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Add the missing safe-output authorization coverage identified by the fixture and compiler-test audit.

Key metrics/issues

  • Newly covered types: 1 (authorization)
  • Added workflow fixtures: 1
  • Added compiler configuration cases: 1
  • Coverage scan: 0 missing types
  • git diff --check: passed
  • Go test and pre-PR compile/vet gate: blocked because Go 1.27.4 could not be downloaded due certificate validation in the environment.
Details

The fixture configures the global HTTPS authorization endpoint and audience with OIDC permission, and exercises the noop safe output. The compiler test verifies the serialized authorization handler-manager key.

Next actions

Run the targeted Go test in an environment with the required Go toolchain available.

Generated by 🔧 Daily Safe Output Integrator · copilot · routed: gpt56 xhigh · ~9 AIC · ⌖ ~2 AIC · ⊞ 3.6K · ◷

  • expires on Nov 22, 2026, 10:48 AM UTC-08:00


✨ PR Review Safe Output Test - Run 44598742833

💥 [THE END] — Illustrated by Smoke Claude · claude · sonnet46 · ~85 AIC · ⌖ ~6 AIC · ⊞ 1K · ◷
Comment /smoke-claude to run again

Add authorization workflow fixture and compiler configuration coverage.\n\nCo-authored-by: Copilot <[email protected]>

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

A moderate finding remains because the workflow-level OIDC permission grants id-token write to the agent job even though the configured noop output does not require OIDC.

1 open issue
What changed in this PR

Adds safe-output authorization coverage through compiler serialization tests and a Copilot workflow fixture.

Changes:

  • Verifies serialization of the global authorization handler-manager configuration.
  • Adds a Copilot workflow fixture with HTTPS authorization settings and a bounded noop safe output.
  • The fixture grants workflow-wide id-token: write permission, unnecessarily broadening OIDC access to the agent job.
File Description
pkg/​workflow/​compiler_safe_outputs_config_test.go Adds a compiler test case covering serialization of the global safe-output authorization configuration.
pkg/​cli/​workflows/​test-copilot-authorization.md Adds a Copilot workflow fixture exercising global authorization settings with the noop safe output and workflow-wide OIDC permission.

Review effort: Lite (adaptive)

Comment on lines +4 to +7
permissions:
id-token: write
engine: copilot
safe-outputs:

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.

Removed the workflow-level OIDC grant in 74d49a2. The compiled agent job no longer receives id-token: write.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! 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 (pkg/cli/workflows/test-copilot-authorization.md:7): address unresolved feedback - Review comment

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "bee5b2c3aed44c9ed8cc04d00bad870e3f4caeea",
  "kind": "requested",
  "schema_version": "1",
  "state": "6b84c19eebb5fa04da228812f73400d540f0cf93025031f6d29bbe77b28f19ec",
  "work": [
    "33570404049fed4d9cd141a2c5665f4fe0a5581dc25ea2afe32893714cf2858e"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

gh-aw-bot and others added 2 commits November 19, 2026 19:31
…rization-coverage-e660e3ef59454c3a

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@github-actions
github-actions Bot requested an adaptive review from Copilot November 19, 2026 19:45

@github-actions github-actions Bot left a comment

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 END] — Illustrated by Smoke Claude · claude · sonnet46 · ~85 AIC · ⌖ ~6 AIC · ⊞ 1K
Comment /smoke-claude to run again

max: 2
---

# Test Safe Output Authorization

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.

✅ Smoke test review comment #1 (Run 44598742833): The workflow title is clear and descriptive. Consider adding a brief description of what authorization means in context for new contributors.

expectedEnvironment string
checkRequireAgentSuccess bool
}{
{

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.

✅ Smoke test review comment #2 (Run 44598742833): Good test case naming convention. The authorization config test follows the existing pattern well. The expectedKeys check for "authorization" is a good regression guard.

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.

🔵 Needs a closer look

A critical workflow fixture grants top-level id-token: write even though it only uses the builtin noop output, unnecessarily propagating token access to the agent job and violating least privilege.

1 open issue

Review effort: Lite (adaptive)

Copilot AI commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged main in a057e77 and addressed the OIDC feedback in 74d49a2. The final validation gate passed.

Copilot AI requested a review from gh-aw-bot November 19, 2026 20:04
@pelikhan
pelikhan merged commit 1b48a0c into main Nov 19, 2026
80 checks passed
@pelikhan
pelikhan deleted the fix/safe-output-authorization-coverage-e660e3ef59454c3a branch November 19, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants