Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

The portfolio-analyst workflow failed at step 14 with unknown command "aw" for "gh". The workflow invoked gh aw logs in a manual step before the agent job runs, but the CLI extension installation step is conditional and was skipped.

Changes

  • Changed command from gh aw logs to ./gh-aw logs in .github/workflows/portfolio-analyst.md
  • Recompiled workflow to update .github/workflows/portfolio-analyst.lock.yml

Technical Details

The gh-aw binary is built and copied to ./gh-aw during the "Build gh-aw CLI" step, making it available for manual steps without requiring the CLI extension. This pattern is already used in safe-output-health.md.

Before:

steps:
  - name: Download logs from last 30 days
    run: |
      gh aw logs --start-date -30d -c 5000 -o /tmp/portfolio-logs --json > /tmp/portfolio-logs/summary.json

After:

steps:
  - name: Download logs from last 30 days
    run: |
      ./gh-aw logs --start-date -30d -c 5000 -o /tmp/portfolio-logs --json > /tmp/portfolio-logs/summary.json

Pattern

For workflows needing gh-aw commands in pre-processing steps:

  • Use ./gh-aw (local binary, always available)
  • Not gh aw (CLI extension, conditionally installed)
  • Not agentic-workflows: tool (MCP server for AI agent, not shell commands)
Original prompt

This section details on the original issue you should resolve

<issue_title>[agentics] Automated Portfolio Analyst failed</issue_title>
<issue_description>### Workflow Failure

Workflow: Automated Portfolio Analyst
Branch: main
Run URL: https://github.com/github/gh-aw/actions/runs/21818648710

Action Required

Debug this workflow failure using the agentic-workflows agent:

/agent agentic-workflows

When prompted, instruct the agent to debug this workflow failure.

Generated from Automated Portfolio Analyst

  • expires on Feb 16, 2026, 9:02 AM UTC

Comments on the Issue (you are @copilot in this section)


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

… extension

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug workflow failure in automated portfolio analyst Fix portfolio-analyst workflow: use local binary instead of CLI extension Feb 9, 2026
Copilot AI requested a review from pelikhan February 9, 2026 10:35
@pelikhan pelikhan marked this pull request as ready for review February 9, 2026 10:36
Copilot AI review requested due to automatic review settings February 9, 2026 10:36
@pelikhan pelikhan merged commit b787a67 into main Feb 9, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/debug-automated-portfolio-analyst branch February 9, 2026 10:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the portfolio-analyst agentic workflow’s pre-processing log download step by using the locally built gh-aw binary (available as ./gh-aw) instead of the gh aw CLI extension, which may not be installed when that step runs.

Changes:

  • Updated the pre-step command from gh aw logs to ./gh-aw logs in the workflow source (.md) definition.
  • Recompiled the workflow, updating the generated lock workflow (.lock.yml) accordingly.

Reviewed changes

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

File Description
.github/workflows/portfolio-analyst.md Switches log download step to use ./gh-aw logs so it works without the GH CLI extension.
.github/workflows/portfolio-analyst.lock.yml Regenerated compiled workflow reflecting the updated command and frontmatter hash.

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

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.

[agentics] Automated Portfolio Analyst failed

2 participants