Skip to content

Classify GitHub context wildcard projections as credential-bearing - #76980

Merged
lpcox merged 3 commits into
mainfrom
copilot/fix-github-context-wildcard-projections
Nov 12, 2026
Merged

lpcox merged 3 commits into
mainfrom
copilot/fix-github-context-wildcard-projections

Conversation

Copilot AI commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Workflow env validation recognized github and github.token as credential-bearing but missed github.*, including toJSON(github.*).

  • Classification: Extend the shared classifier to recognize context-wide GitHub wildcard projections without changing AST resolution or flagging vars.* and github.event.*.
  • Validation: Use existing strict rejection and non-strict warning paths for workflow env and non-exempt engine.env; preserve supported engine credential bindings.
  • Regression coverage: Cover grouped/case-equivalent forms, serialization, lock-file preservation, existing credential references, and safe controls.
env:
  SNAPSHOT: ${{ toJSON(github.*) }} # Rejected in strict mode; warned otherwise

This is conservative static classification, not a claim of runtime disclosure.

Copilot AI changed the title [WIP] Fix inconsistent classification of GitHub context wildcards in validation Classify GitHub context wildcard projections as credential-bearing Nov 11, 2026
Copilot AI requested a review from lpcox November 11, 2026 22:52
@lpcox
lpcox marked this pull request as ready for review November 11, 2026 23:05
Copilot AI adaptive review requested due to automatic review settings November 11, 2026 23:05
@github-actions

github-actions Bot commented Nov 11, 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 · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 181 · ◷

Generated by Ponytail Reviewer for #76980

@github-actions

github-actions Bot commented Nov 11, 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 · ~2 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 1.6K · ◷

Generated by PR Specification Reviewer for #76980

@github-actions

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

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

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

Design Decision Gate 🏗️

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 Design Decision Gate 🏗️ · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.5K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 11, 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: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@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 credential classification and regression coverage. The wildcard rule is appropriately applied through the shared credential-reference classifier, including prompt isolation and AWF environment filtering; the new tests cover grouped, serialized, case-insensitive, and control expressions. No actionable correctness or maintainability issues found in the changed lines.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

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.

🟢 Approval recommended

There are no active review issues for the update extending credential classification to GitHub context wildcard projections.

No open issues 🎉

What changed in this PR

Closes #76979 by extending gh-aw’s static credential classification to recognize context-wide GitHub wildcard projections without changing expression resolution.

Changes:

  • Routes github.* and serialized forms through existing strict rejection and non-strict warning paths.
  • Adds regression coverage for workflow and engine environments, lock-file preservation, grouped/case-equivalent expressions, and safe controls.
File Description
pkg/​workflow/​env_secrets_validation_test.go Tests wildcard validation, warnings, and lock-file preservation.
pkg/​workflow/​credential_free_prompt.go Classifies GitHub context wildcard references as credential-bearing.
pkg/​workflow/​credential_free_prompt_test.go Tests wildcard classification and preserves safe-expression controls.

Review effort: Max (auto)

@lpcox

lpcox commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix this failing ci check https://github.com/github/gh-aw/actions/runs/43117054574/job/130847893944?pr=76980

The failure was a timing-sensitive harness test, unrelated to this change. It passed five local reruns, and the CI retry passed the impacted Go test step. No code change was needed.

@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. Fix failing check agent (FAILURE): Check run.
  3. Fix failing check conclusion (FAILURE): Check run.
  4. Fix failing check detection (FAILURE): Check run.

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

Structured data
{
  "completed_task": 0,
  "head": "69d85df050dd94b97710b354ba7b2be297fa7d6f",
  "kind": "requested",
  "schema_version": "1",
  "state": "b1d3f2e4f35eaca5d58e5b079ca0573baac79b209b7d406cad57fcdcdef92337",
  "work": [
    "34f38971738f6a752a646bd7797a6c8d47fb096e4eb6f91e946a91255433c8c4",
    "51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
    "a121abdb6f7ec1d76bbf7f04ffacc47490c3a82a0a8351c53214073a3902577d"
  ],
  "workflow": "pr-sous-chef"
}

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

@lpcox

lpcox commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

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

Merged main in dce20e6e; targeted tests and the final validation gate passed. The reviewer agent hit its infrastructure retry/timeout budget; detection hit an exhausted GitHub API quota during AWF attestation, and conclusion reported those failures. These historical checks remain unresolved without a rerun; none was triggered. CodeQL timed out.

Copilot AI commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix this failing ci check https://github.com/github/gh-aw/actions/runs/43117054112/job/130848546531?pr=76980

The reviewer’s Copilot CLI step timed out after 30 minutes and reported an infrastructure retry-budget failure; the log does not establish a PR-code cause. The failed run is for 69d85df, not current head dce20e6e. No fix or rerun was made; the earlier instruction prohibited triggering CI.

@lpcox
lpcox merged commit 4818bbd into main Nov 12, 2026
50 checks passed
@lpcox
lpcox deleted the copilot/fix-github-context-wildcard-projections branch November 12, 2026 01:03
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.3

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.

Classify GitHub context wildcard projections consistently in workflow env validation

4 participants