You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:99tar -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.
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.
Activity
mmcky commentedon Jun 16, 2026
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-environmentresolves 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-mainrisk. M14/M15/M16 handled as described.build-jupyter-cache/publish: pin siblings, scope artifact, harden rel…