Skip to content

fix: make pre-activation app token generation resilient to missing app installation#21833

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/debug-action-error-23303446686
Closed

fix: make pre-activation app token generation resilient to missing app installation#21833
Copilot wants to merge 2 commits intomainfrom
copilot/debug-action-error-23303446686

Conversation

Copy link
Contributor

Copilot AI commented Mar 19, 2026

The Issue Monster workflow (and any workflow importing shared/activation-app.md) has been failing for hundreds of consecutive runs. The "Generate GitHub App token for skip-if checks" step hard-fails with HTTP 404 when vars.APP_ID points to a GitHub App not installed on the repo, taking down the entire pre_activation job and skipping all downstream jobs.

Changes

  • buildPreActivationAppTokenMintStep: Added continue-on-error: true to the app token mint step so a missing installation no longer fails the job
  • resolvePreActivationSkipIfToken: Updated the token expression to fall back to github.token when the app token is unavailable:
    github-token: ${{ steps.pre-activation-app-token.outputs.token || github.token }}
  • Tests (skip_if_match_test.go, skip_if_no_match_test.go): Updated assertions to expect the new fallback expression
  • issue-monster.lock.yml: Recompiled

Copilot AI and others added 2 commits March 19, 2026 16:11
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…allation

Add continue-on-error: true to the GitHub App token mint step in the
pre-activation job, and fall back to github.token in skip-if check steps
when the app token is empty (e.g. app not installed on the repository).

This fixes the Issue Monster workflow which has been failing for hundreds of
runs because the GitHub App (vars.APP_ID) is not installed on github/gh-aw:
the token generation returned HTTP 404, hard-failing pre_activation and
causing all downstream jobs to be skipped.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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