Skip to content

fix: replace expired AWI_MAINTENANCE_TOKEN with GH_AW_GITHUB_TOKEN in pr-sous-chef add_comment handler - #48907

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/aw-failures-fix-add-comment
Closed

fix: replace expired AWI_MAINTENANCE_TOKEN with GH_AW_GITHUB_TOKEN in pr-sous-chef add_comment handler#48907
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/aw-failures-fix-add-comment

Conversation

Copilot AI commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

add_comment safe-output calls in PR Sous Chef were failing 100% of the time with 401 Bad credentials because the handler was pinned to AWI_MAINTENANCE_TOKEN — a dedicated secret that is expired/revoked — while every other handler in the same workflow uses GH_AW_GITHUB_TOKEN/GITHUB_TOKEN and succeeds.

Changes

  • pr-sous-chef.md — replace AWI_MAINTENANCE_TOKEN with GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN on the add-comment safe-output github-token field, matching the pattern used by all other handlers
 safe-outputs:
   add-comment:
     max: 4
     target: "*"
-    github-token: ${{ secrets.AWI_MAINTENANCE_TOKEN }}
+    github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
  • pr-sous-chef.lock.yml — recompiled; AWI_MAINTENANCE_TOKEN is fully absent from the lock file and its secrets manifest

…-chef add_comment

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update AWI_MAINTENANCE_TOKEN for add_comment failures fix: replace expired AWI_MAINTENANCE_TOKEN with GH_AW_GITHUB_TOKEN in pr-sous-chef add_comment handler Jul 29, 2026
Copilot AI requested a review from pelikhan July 29, 2026 14:42
@pelikhan pelikhan closed this Jul 29, 2026
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.

[aw-failures] [aw] PR Sous Chef: add_comment failing with 401 Bad credentials (AWI_MAINTENANCE_TOKEN)

2 participants