Skip to content

Container test workflows: checkout the built SHA + de-hardcode org #37

Closed

Description

@mmcky

The container test workflows run on workflow_run but check out the wrong commit and hardcode the org.

  • M11 — Checkout SHA (test-container.yml). test-container.yml:17 uses actions/checkout@v4 with no ref; for workflow_run events checkout defaults to the default branch, not the SHA that built the image. Add ref: ${{ github.event.workflow_run.head_sha }}.
  • M12 — Checkout SHA (test-containers-lectures.yml). Same on both checkouts at :55-64.
  • M13 — Hardcoded org. Tests pull ghcr.io/quantecon/... (test-container.yml:27,:33,:68; test-containers-lectures.yml:46) while the build workflow uses github.repository_owner — so a fork builds to its own org but tests pull from quantecon. Use ${{ github.repository_owner }} or document the quantecon-only constraint.

Filed from the 2026-06-16 technical review.

Activity

  1. added
    bug
    on Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions