Skip to content

Investigate artifact publishing authorization - #80753

Closed
gh-aw-bot wants to merge 3 commits into
mainfrom
copilot/uk-ai-resilience-fix-cwe-863
Closed

gh-aw-bot wants to merge 3 commits into
mainfrom
copilot/uk-ai-resilience-fix-cwe-863

Conversation

@gh-aw-bot

@gh-aw-bot gh-aw-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Alert 1246 reports an authorization finding in artifact publishing. The final handler checks authorization, but the staging directory is uploaded before that check and before allowed-paths filtering.

  • Status: No code changes are proposed yet. The alert details are inaccessible, so the relationship between the finding and staging upload remains unverified.
  • Next steps: Review the alert location and staging transport, add regression coverage, and obtain human security review.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@gh-aw-bot gh-aw-bot changed the title [WIP] Fix CWE-863 authorization finding in publish_artifacts.go Investigate artifact publishing authorization Nov 24, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 24, 2026 18:24
Copilot AI adaptive review requested due to automatic review settings November 24, 2026 18:24
@github-actions

github-actions Bot commented Nov 24, 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 · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 5.1K · history

@github-actions

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

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

Review stopped: the required pre-fetched PR metadata or diff is missing or empty.

Generated by Ponytail Reviewer for #80753 · codex · routed: gpt61 medium · ~2 AIC · ⌖ ~1 AIC · ⊞ 176 · history

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

Specification review completed for PR #80753 at head 71ff6e8: 71 changed files are generated .lock.yml artifacts; no directly affected normative specification change, regression, or eligible synchronization was identified. No review or branch update was needed.

Generated by PR Specification Reviewer for #80753 · copilot · gpt56 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.8K · history

@github-actions

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

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

No action needed: PR #80753 changes 71 files, all of which are compiled GitHub Actions workflow lock files (.lock.yml). No test files (_test.go, *.test.cjs, *.test.js, Python, or Rust tests) were added or modified, so the Test Quality Sentinel has no tests to score. Verified against the live PR (head 71ff6e8, 71 changed files, zero test-pattern matches) and the pre-fetched diff (test-diff.txt is empty because no test files exist, not because the fetch failed).

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.4K · history

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

The [aw] No-Op Runs tracker omits agent messages. The category uses structured run status, not interpretation of agent prose.

No-op message

Completed PR #80753 review: no actionable changed-line findings; review submitted and history recorded.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.7K · history

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

Review result

No actionable issues found in the changed lines. The PR updates generated lockfiles to Claude CLI 2.1.331; I found no correctness, security, or workflow-regression issue attributable to those generated changes.

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

Summary

No reviewable source changes. All 71 changed files are generated .lock.yml workflows. Every changed line is a version bump from 2.1.325 to 2.1.331 (Claude Code CLI and GH_AW_INFO_* version fields), and the paired gh-aw-metadata engine version is updated. Frontmatter and body hashes are unchanged, and I found no permission or authorization logic changes.

[/tdd] Nothing in this PR adds regression coverage for the staging-upload-before-authorization concern described in the body.

Blocking: Fixes #80749 would close the issue without a fix. The body says no code changes are proposed and the alert is unverified. Merging with this keyword auto-Closes #80749. Change it to Refs #80749 until a fix lands.

Details and suggested next steps
  • Split the lock-file version bump from the investigation so the security discussion has a clean diff.
  • Before any fix: confirm the staging upload order against the final allowed-paths filter, add a regression test that fails when upload precedes authorization, and get human security review.
  • Analysis uses the lock-file versions in the workspace, which match the PR stats of 855 additions and 855 deletions.

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

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-0aa96df0-d97e-4779-bbb5-eadb7a58322a","parents":[],"payload":{"id":"ldg-fc2a80f6-1485-42f4-ae46-af695f488b6e","operation":"append","value":{"finding_count":0,"head_sha":"71ff6e801fa571bae7d2b8d21c7379431971983b","outcome":"no_findings"}},"sha":"sha256:2278d99090db80e1965800abf9483b5817f9d40126d1e7e0f4d4eaa4946ef91c","timestamp":"2026-11-24T18:33:58.708Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-f9471177-6822-4a69-9875-6338bcd8b897","parents":[],"payload":{"id":"ldg-04b86982-7145-4aa6-807f-a2c971298e09","operation":"append","value":{"finding_count":0,"head_sha":"71ff6e801fa571bae7d2b8d21c7379431971983b","outcome":"aligned"}},"sha":"sha256:70faef953b12240f5f63a77a0913cf4f54f21777dbbe3b8b1c1fc94bf1bef55a","timestamp":"2026-11-24T18:35:30.452Z","type":"ledger_append","version":1}
History

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 diff introduces an unrelated CLI downgrade across 31 workflow locks, including threat-detection jobs, while Fixes #80749 would close an unverified security issue without an authorization fix or regression tests.

1 open issue
What changed in this PR

This PR relates to the artifact-publishing authorization investigation in #80749. The current diff only changes generated gh-aw GitHub Actions workflows; artifact-publishing code and regression tests remain unchanged.

Changes:

  • Roll back Claude Code installation pins from 2.1.331 to 2.1.325 across 31 workflows, including affected threat-detection jobs.
  • Update engine metadata and reported version fields to match the rollback.
File Description
.github/​workflows/​step-name-alignment.lock.yml Rolls back the alignment agent runtime.
.github/​workflows/​static-analysis-report.lock.yml Rolls back the static-analysis agent runtime.
.github/​workflows/​smoke-claude-sub-agents.lock.yml Rolls back the sub-agent smoke-test runtime.
.github/​workflows/​smoke-claude-routed.lock.yml Rolls back the routed Claude runtime.
.github/​workflows/​smoke-claude-routed-anthropic.lock.yml Rolls back agent and threat-detection runtimes.
.github/​workflows/​smoke-claude-dynamic.lock.yml Rolls back agent and threat-detection runtimes.
.github/​workflows/​smoke-claude-copilot.lock.yml Rolls back the Copilot-backed Claude runtime.
.github/​workflows/​smoke-claude-copilot-auto.lock.yml Rolls back the automatic Copilot-routing runtime.
.github/​workflows/​smoke-claude-auto.lock.yml Rolls back the automatic Claude runtime.
.github/​workflows/​semantic-function-refactor.lock.yml Rolls back the refactoring agent runtime.
.github/​workflows/​safe-output-health.lock.yml Rolls back the health-monitor agent runtime.
.github/​workflows/​refiner.lock.yml Rolls back the code-refiner runtime.
.github/​workflows/​org-health-report.lock.yml Rolls back the organization-report agent runtime.
.github/​workflows/​lockfile-stats.lock.yml Rolls back the statistics agent runtime.
.github/​workflows/​instructions-janitor.lock.yml Rolls back the instructions-maintenance runtime.
.github/​workflows/​go-logger.lock.yml Rolls back the logger-enhancement agent runtime.
.github/​workflows/​github-mcp-tools-report.lock.yml Rolls back the tools-report agent runtime.
.github/​workflows/​github-mcp-structural-analysis.lock.yml Rolls back the structural-analysis agent runtime.
.github/​workflows/​example-workflow-analyzer.lock.yml Rolls back the workflow-analysis runtime.
.github/​workflows/​engine-conformance-claude.lock.yml Rolls back the Claude conformance runtime.
.github/​workflows/​deployment-incident-monitor.lock.yml Rolls back the incident-monitor agent runtime.
.github/​workflows/​delight.lock.yml Rolls back the Delight agent runtime.
.github/​workflows/​daily-vulnhunter-scan.lock.yml Rolls back the vulnerability-scanning agent runtime.
.github/​workflows/​daily-safeoutputs-git-simulator.lock.yml Rolls back the Git-simulator agent runtime.
.github/​workflows/​daily-safe-outputs-conformance.lock.yml Rolls back the safe-output conformance runtime.
.github/​workflows/​daily-grader-audit.lock.yml Rolls back the grader-audit agent runtime.
.github/​workflows/​daily-elixir-credo-snippet-audit.lock.yml Rolls back the snippet-audit agent runtime.
.github/​workflows/​daily-choice-test.lock.yml Rolls back agent and threat-detection runtimes.
.github/​workflows/​daily-byok-ollama-test.lock.yml Rolls back Claude threat detection; preserves Copilot’s version.
.github/​workflows/​daily-astrostylelite-markdown-spellcheck.lock.yml Rolls back the spellcheck agent runtime.
.github/​workflows/​claude-code-user-docs-review.lock.yml Rolls back the documentation-review agent runtime.

Review effort: Max (adaptive)

run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.29.20 --rootless
- name: Install Claude Code CLI
run: npm install -g @anthropic-ai/claude-code@2.1.331
run: npm install -g @anthropic-ai/claude-code@2.1.325
@github-actions

Copy link
Copy Markdown
Contributor

🛠️ Agentic Maintenance updated this pull request branch.

View workflow run

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.

[uk-ai-resilience] [UK AI governance] Tier C: fix CWE-863 authorization finding in pkg/workflow/publish_artifacts.go

4 participants