Skip to content

chore: merge main into portable-gh-aw-home and recompile - #19817

Merged
pelikhan merged 2 commits into
portable-gh-aw-homefrom
copilot/sub-pr-19744
Mar 6, 2026
Merged

chore: merge main into portable-gh-aw-home and recompile#19817
pelikhan merged 2 commits into
portable-gh-aw-homefrom
copilot/sub-pr-19744

Conversation

CopilotAI commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Brings the portable-gh-aw-home branch up to date with 5 new commits from main:

All 167 workflow lock files recompiled against the merged state.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

CopilotAI commented Mar 6, 2026

Copy link
Copy Markdown
ContributorAuthor

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
  • https://api.github.com/repos/actions/download-artifact/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/download-artifact/git/ref/tags/v8 --jq .object.sha (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/download-artifact/git/ref/tags/v8 --jq .object.sha d -n 10 (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v7
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v7 --jq .object.sha (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb --jq .object.sha (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha (http block)

If you need me to access, download, or install something from one of these locations, you can either:

CopilotAI changed the title [WIP] Implement portable GH_AW_HOME for self-hosted runner supportchore: merge main into portable-gh-aw-home and recompileMar 6, 2026
@pelikhan
pelikhan marked this pull request as ready for review March 6, 2026 08:14
CopilotAI review requested due to automatic review settings March 6, 2026 08:14
@pelikhan
pelikhan merged commit 59d5776 into portable-gh-aw-homeMar 6, 2026
@pelikhan
pelikhan deleted the copilot/sub-pr-19744 branch March 6, 2026 08:14

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

Pull request overview

Updates portable-gh-aw-home by merging recent main changes and recompiling workflow lock files, bringing in fixes to token selection for assign-to-agent, add_comment temporary ID support, and label-trigger shorthand inputs.item_number fallbacks (plus docs and dependency updates).

Changes:

  • Avoid GitHub App installation tokens for assign-to-agent and emit a compiler warning when configuration implies fallback behavior.
  • Add/propagate workflow_dispatch.inputs.item_number detection and apply || inputs.item_number fallbacks to extracted expressions and concurrency keys.
  • Extend Safe Outputs add_comment to support/return temporary_id, update schemas, tests, docs, and recompile workflow lock files.

Reviewed changes

Copilot reviewed 95 out of 96 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
pkg/workflow/schedule_preprocessing_test.goAdds preprocessing tests for label-trigger shorthand expansion and error cases.
pkg/workflow/safe_outputs_env.goAdjusts agent assignment token selection to avoid GitHub App tokens.
pkg/workflow/js/safe_outputs_tools.jsonUpdates tool schemas (temporary_id patterns, add_comment item_number accepts temp IDs).
pkg/workflow/expression_extraction_test.goAdds tests for applying workflow_dispatch inputs.item_number fallbacks.
pkg/workflow/expression_extraction.goImplements mapping fallback patching for entity number expressions.
pkg/workflow/concurrency_test.goAdds tests ensuring concurrency keys include inputs.item_number fallback when present.
pkg/workflow/concurrency.goRefactors entity concurrency key construction and inserts inputs.item_number when available.
pkg/workflow/compiler_yaml.goApplies inputs.item_number fallbacks after expression mapping collection.
pkg/workflow/compiler_types.goAdds WorkflowData.HasDispatchItemNumber field.
pkg/workflow/compiler_safe_outputs_job_test.goAdds tests verifying assign-to-agent token behavior with GitHub App config.
pkg/workflow/compiler_orchestrator_workflow_test.goAdds tests for detecting dispatch item_number from structured frontmatter.
pkg/workflow/compiler_orchestrator_workflow.goDetects workflow_dispatch.inputs.item_number from in-memory frontmatter map.
pkg/workflow/compiler.goEmits warning when assign-to-agent + GitHub App are configured without explicit token override.
docs/src/content/docs/reference/gh-aw-as-mcp-server.mdDocuments Docker-image first-use download behavior for compile scanners.
docs/src/content/docs/reference/assign-to-copilot.mdxDocuments that GitHub App tokens are rejected for Copilot assignment and describes fallback chain.
docs/package-lock.jsonBumps dompurify to 3.3.2.
actions/setup/setup.shEnsures temporary_id.cjs is included in copied safe-outputs assets.
actions/setup/js/safe_outputs_tools.jsonMirrors safe-outputs schema updates (temporary IDs, add_comment changes).
actions/setup/js/safe_outputs_mcp_add_comment_constraints.test.cjsExtends MCP constraint tests to assert temporary_id is recorded/returned.
actions/setup/js/safe_outputs_handlers.test.cjsAdds unit tests for addCommentHandler temporary_id behavior and NDJSON recording.
actions/setup/js/safe_outputs_handlers.cjsAdds temporary_id generation/validation + response payload for add_comment; refactors create_project temp ID handling.
.github/workflows/workflow-skill-extractor.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/workflow-normalizer.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/workflow-health-manager.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment temp IDs).
.github/workflows/video-analyzer.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/unbloat-docs.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/test-project-url-default.lock.ymlRecompiled lock file reflecting updated tool schemas (temp ID patterns).
.github/workflows/technical-doc-writer.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/super-linter.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/sub-issue-closer.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/step-name-alignment.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/stale-repo-identifier.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/smoke-workflow-call.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-update-cross-repo-pr.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-test-tools.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-temporary-id.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-project.lock.ymlRecompiled lock file reflecting updated tool schemas (temp ID patterns + add_comment changes).
.github/workflows/smoke-opencode.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-multi-pr.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-gemini.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-create-cross-repo-pr.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-copilot.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-copilot-arm.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-codex.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-claude.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/smoke-agent.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/semantic-function-refactor.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/security-compliance.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/security-alert-burndown.campaign.g.lock.ymlRecompiled lock file reflecting updated tool schemas (temp ID + add_comment changes).
.github/workflows/scout.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/refiner.lock.ymlRecompiled lock file reflecting inputs.item_number fallbacks + tool schema updates.
.github/workflows/q.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/pr-triage-agent.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/poem-bot.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/plan.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/pdf-summary.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/issue-triage-agent.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/issue-monster.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/issue-arborist.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/gpclean.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/go-pattern-detector.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/duplicate-code-detector.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/draft-pr-cleanup.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/discussion-task-miner.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/dev.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/dev-hawk.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/dependabot-go-checker.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/dependabot-burner.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/delight.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/deep-report.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-testify-uber-super-expert.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-team-status.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-syntax-error-quality.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-security-red-team.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-safe-outputs-conformance.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-safe-output-optimizer.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-multi-device-docs-tester.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-mcp-concurrency-analysis.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-file-diet.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-fact.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/daily-doc-healer.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-cli-tools-tester.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/daily-cli-performance.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/daily-assign-issue-to-user.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/daily-architecture-diagram.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/craft.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/contribution-check.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/cloclo.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/cli-version-checker.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/cli-consistency-checker.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/ci-doctor.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/breaking-change-checker.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/brave.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/bot-detection.lock.ymlRecompiled lock file reflecting updated tool schemas.
.github/workflows/archie.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
.github/workflows/agent-performance-analyzer.lock.ymlRecompiled lock file reflecting updated tool schemas (incl. add_comment changes).
Files not reviewed (1)
  • docs/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1649 to +1652
names, _ := triggerMap["names"].([]string)
if !slicesEqual(names, tt.wantLabelNames) {
t.Errorf("expected names %v, got %v", tt.wantLabelNames, names)
}

CopilotAIMar 6, 2026

Copy link

Choose a reason for hiding this comment

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

This test uses slicesEqual(...), but that helper isn’t defined in this file (and slices isn’t imported either), so the package won’t compile. Consider either defining a local helper (as done in pkg/workflow/label_trigger_parser_test.go) or switching to slices.Equal and importing slices (Go 1.21+).

Copilot uses AI. Check for mistakes.
Comment on lines +221 to +234
// Emit warning when assign-to-agent is used with github-app: but no explicit github-token:.
// GitHub App tokens are rejected by the Copilot assignment API — a PAT is required.
// The token fallback chain (GH_AW_AGENT_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN) is used automatically.
if workflowData.SafeOutputs != nil &&
workflowData.SafeOutputs.AssignToAgent != nil &&
workflowData.SafeOutputs.GitHubApp != nil &&
workflowData.SafeOutputs.AssignToAgent.GitHubToken == "" {
fmt.Fprintln(os.Stderr, console.FormatWarningMessage(
"assign-to-agent does not support GitHub App tokens. "+
"The Copilot assignment API requires a fine-grained PAT. "+
"The token fallback chain (GH_AW_AGENT_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN) will be used automatically. "+
"Add github-token: to your assign-to-agent config to specify a different token."))
c.IncrementWarningCount()
}

CopilotAIMar 6, 2026

Copy link

Choose a reason for hiding this comment

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

The warning text says the token fallback chain (GH_AW_AGENT_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN) will be used automatically when assign-to-agent.github-token isn’t set, but addSafeOutputAgentGitHubTokenForConfig actually prefers safe-outputs.github-token before that secret chain. Either broaden the condition/message to mention safe-outputs.github-token precedence, or only emit this warning when both assign-to-agent.github-token and safe-outputs.github-token are unset so the message is accurate.

Copilot uses AI. Check for mistakes.
Sign up for freeto 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.

3 participants

@pelikhan