Skip to content

[BUG] sync-main-to-dev fails in container jobs because run steps use sh instead of bash #395

Closed

Description

@c-vigo

Description

The downstream smoke-test run for Sync main to dev fails before branch comparison logic executes because containerized run: steps are executed with sh, but the workflow scripts use set -euo pipefail.

Steps to Reproduce

  1. Trigger downstream smoke-test dispatch that runs assets/workspace/.github/workflows/sync-main-to-dev.yml.
  2. Open the Check if dev is up to date job.
  3. Inspect step Check if dev is up to date with main.
  4. Observe shell startup and immediate script failure.

Expected Behavior

The check and sync jobs execute shell scripts successfully in container jobs, including set -euo pipefail, and continue to branch comparison / PR sync logic.

Actual Behavior

The script fails immediately with:
set: Illegal option -o pipefail
because the container job uses shell: sh -e {0} by default.

Environment

  • OS: GitHub Actions ubuntu-22.04
  • Container Runtime: Docker (GitHub-hosted runner)
  • Image Version/Tag: ghcr.io/vig-os/devcontainer:0.3.0-rc2
  • Architecture: AMD64
  • Workflow run: Run 23335537572, job 67876302991

Additional Context

  • Upstream non-container workflow does not exhibit this because default shell is bash on VM jobs.
  • Workspace template version runs check/sync in containers, which changes default shell behavior.

Possible Solution

Changelog Category

Fixed

Acceptance Criteria

  • check and sync jobs in sync-main-to-dev.yml explicitly run run: steps with bash.
  • Smoke-test downstream run no longer fails on set -euo pipefail.
  • TDD compliance (see .cursor/rules/tdd.mdc)

Activity

  1. self-assigned this
    on Mar 20, 2026
  2. added
    bug
    area:ci
    area:workflow
    effort:small
    semver:patch
    on Mar 20, 2026
  3. c-vigo commented on Mar 20, 2026

    @c-vigo
    ContributorAuthor

    Successful downstream run 23339310830, opened PR#46

  4. 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

area:ciarea:workflowbugeffort:smallsemver:patch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions