Skip to content

Smoke-test dispatch failed for 0.3.1-rc8 #400

Closed

Description

@vig-os-release-app

Smoke-test dispatch failed while orchestrating downstream release validation.

Dispatch metadata

Workflow context

Job results

  • validate: success
  • deploy: success
  • wait-deploy-merge: success
  • cleanup-release: success
  • trigger-prepare-release: failure
  • ready-release-pr: skipped
  • trigger-release: skipped
  • summary: failure

Manual cleanup guidance

  • Inspect deploy/release PRs and workflow logs before retrying.
  • If needed, close stale release PRs and delete stale release/<version> branch.
  • Re-dispatch using a new RC tag/version once root cause is fixed.

Activity

  1. added
    bug
    on Mar 20, 2026
  2. c-vigo commented on Mar 20, 2026

    @c-vigo
    Contributor

    Root Cause Analysis

    Summary

    The trigger-prepare-release job failed because the downstream prepare-release.yml workflow in devcontainer-smoke-test attempted to commit the CHANGELOG freeze directly to the dev branch using ${{ github.token }} (the default GITHUB_TOKEN), but the dev branch ruleset blocks direct pushes.

    Failure chain

    repository-dispatch.yml (smoke-test)
      └─ trigger-prepare-release
           └─ dispatches → prepare-release.yml (smoke-test)
                └─ "Prepare Release Branch" job
                     └─ step 8: "Commit prepared CHANGELOG to dev via API"
                          └─ vig-os/commit-action → BLOCKED by ruleset
    

    Root cause

    The smoke-test repo's prepare-release.yml (sourced from the workspace template at assets/workspace/.github/workflows/prepare-release.yml) uses ${{ github.token }} for the vig-os/commit-action step:

    # workspace template (prepare-release.yml, line 202-204)
    - name: Commit prepared CHANGELOG to dev via API
      uses: vig-os/commit-action@...
      env:
        GH_TOKEN: ${{ github.token }}     # ← default GITHUB_TOKEN

    The dev branch has a "Dev protection" ruleset (ID 13444890) requiring:

    1. Changes made through a pull request
    2. Required status check "CI Summary"

    The only bypass actor is integration 2433383 (the Commit App). Since GITHUB_TOKEN is not the Commit App, the commit is rejected:

    Repository rule violations found
    Changes must be made through a pull request.
    Required status check "CI Summary" is expected.
    

    In contrast, the devcontainer repo's own prepare-release.yml correctly generates a Commit App Token and uses it:

    # devcontainer repo (prepare-release.yml, lines 157-163, 221-224)
    - name: Generate Commit App Token
      id: commit-app-token
      uses: actions/create-github-app-token@...
      with:
        app-id: ${{ secrets.COMMIT_APP_ID }}
        private-key: ${{ secrets.COMMIT_APP_PRIVATE_KEY }}
    
    - name: Commit prepared CHANGELOG to dev via API
      uses: vig-os/commit-action@...
      env:
        GH_TOKEN: ${{ steps.commit-app-token.outputs.token }}  # ← Commit App token (has bypass)

    Why it worked before / why it broke now

    The "Dev protection" ruleset was likely added (or had its bypass actors misconfigured) after the workspace template was deployed to the smoke-test repo. The workspace template was never updated to use Commit App tokens, creating a drift between the devcontainer repo's own workflow and its template.

    State after failure

    Fix

    Update assets/workspace/.github/workflows/prepare-release.yml to match the devcontainer repo's approach:

    1. Add a Generate Commit App Token step using COMMIT_APP_ID / COMMIT_APP_PRIVATE_KEY secrets
    2. Replace all GH_TOKEN: ${{ github.token }} references in the prepare job with GH_TOKEN: ${{ steps.commit-app-token.outputs.token }}
    3. Add a Generate Release App Token step for PR creation (matching devcontainer's pattern)
    4. Redeploy the updated workflow to devcontainer-smoke-test
    5. Re-dispatch with a new RC tag to verify
  3. self-assigned this
    on Mar 20, 2026
  4. reopened this on Mar 20, 2026
  5. added a commit that references this issue on Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions