Anonymous View
Skip to content

Prevent false agentic workflow failures when Copilot token is unset#21

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/agentics-failed-runs
Draft

Prevent false agentic workflow failures when Copilot token is unset#21
Copilot wants to merge 2 commits into
mainfrom
copilot/agentics-failed-runs

Conversation

Copilot AI commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

The parent [agentics] Failed runs issue is tracking workflow health noise caused by sub-issues from failed agentic runs. In this repo, the Weekly Content Update run failed when COPILOT_GITHUB_TOKEN was not configured, even though the failure was environmental rather than a workflow logic defect.

  • Root-cause handling (Weekly Content Update)

    • Added a job-level guard to skip the agent job when COPILOT_GITHUB_TOKEN is missing.
    • This avoids generating failure issues for missing-secret scenarios and keeps failure tracking focused on actionable workflow defects.
  • Scope

    • Single-file, surgical workflow change in:
      • .github/workflows/weekly-content-update.lock.yml
    • No behavior changes when the secret is present.
agent:
  needs: activation
  if: ${{ secrets.COPILOT_GITHUB_TOKEN != '' }}
  runs-on: ubuntu-latest

Copilot AI linked an issue Jun 1, 2026 that may be closed by this pull request
Co-authored-by: htekdev <100806365+htekdev@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix agentics workflow run failures Prevent false agentic workflow failures when Copilot token is unset Jun 1, 2026
Copilot AI requested a review from htekdev June 1, 2026 14:07
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] Failed runs

2 participants