Skip to content

Fix audit workflow agent startup failure when OTLP secrets are unset#23

Merged
mnkiefer merged 3 commits into
mainfrom
copilot/fix-github-actions-job-agent
May 14, 2026
Merged

Fix audit workflow agent startup failure when OTLP secrets are unset#23
mnkiefer merged 3 commits into
mainfrom
copilot/fix-github-actions-job-agent

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 14, 2026

Bug Fix

What was the bug?

The agent job in the Copilot token audit workflow failed before the prompt executed. The generated workflow passed empty OTLP endpoint/header values into MCP Gateway, and MCP Gateway rejected the invalid OpenTelemetry config during startup.

How did you fix it?

  • Removed optional OTLP wiring from the audit workflow source

    • Dropped the observability.otlp block from the audit workflow markdown so the workflow no longer emits empty OTLP settings when those secrets are not configured.
  • Regenerated installed workflow artifacts

    • Recompiled the corresponding lock files so the checked-in executable workflows match the updated source and no longer include:
      • OTEL_EXPORTER_OTLP_ENDPOINT
      • OTEL_EXPORTER_OTLP_HEADERS
      • GH_AW_OTLP_ENDPOINTS
  • Scope of change

    • Limited to the Copilot token audit workflow in both source locations used by this repo:
      • workflows/copilot-token-audit.md
      • .github/workflows/copilot-token-audit.md
tracker-id: copilot-token-audit
engine: copilot
safe-outputs:
  create-issue:
    expires: 3d

Copilot AI and others added 3 commits May 14, 2026 07:07
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title fix: prevent audit agent failure without OTLP secrets Fix audit workflow agent startup failure when OTLP secrets are unset May 14, 2026
Copilot AI requested a review from mnkiefer May 14, 2026 07:11
@mnkiefer mnkiefer marked this pull request as ready for review May 14, 2026 07:16
@mnkiefer mnkiefer merged commit 1f12cde into main May 14, 2026
6 checks passed
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.

2 participants