Skip to content

build-jupyter-cache/publish-gh-pages: relative sibling paths + artifact/release guards #38

Closed

Description

@mmcky

Pinning leak + storage/release-asset hardening in the cache-build and publish actions.

  • H8 — Sibling calls use @main from a versioned action. build-jupyter-cache/action.yml:132,:147,:156,:165 call quantecon/actions/setup-environment@main / build-lectures@main. If a user pins build-jupyter-cache@v0, it still executes @main of the siblings — defeats pinning, supply-chain risk. The repo is already checked out, so use ./setup-environment / ./build-lectures.
  • M14 — Cache AND 30-day artifact. build-jupyter-cache/action.yml:251-275 saves _build to GHA cache and uploads it as a 30-day artifact (upload-artifact defaults to 'true'). For ~150 MB _build this doubles storage against the 10 GB cache quota. Make the artifact opt-in / failure-only.
  • M15 — Release tarball self-inclusion. publish-gh-pages/action.yml:99 tar -czf "$ARCHIVE_NAME" -C build-dir . writes into the cwd; if cwd is inside/above build-dir the archive can recurse into itself. Write to an absolute path outside build-dir.
  • M16 — Release-assets guard. publish-gh-pages/action.yml:122-132: create-release-assets: 'true' has no tag-trigger guard and github-token defaults to '', so it fails confusingly mid-flight. Validate token + tag trigger up front.

Filed from the 2026-06-16 technical review.

Activity

  1. added
    maintenance
    on Jun 16, 2026
  2. mmcky commented on Jun 16, 2026

    @mmcky
    ContributorAuthor

    H8 — corrected approach in #44. This issue (following the original review) proposed switching the sibling calls to relative ./ paths. That would actually break consumers: inside a composite action, uses: ./setup-environment resolves against the consumer's $GITHUB_WORKSPACE, not this repo (actions/runner#1348). #44 instead pins the four internal calls @main → @v0, which keeps the working full-path reference while removing the unreleased-main risk. M14/M15/M16 handled as described.

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

    maintenance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions