Skip to content

fix(ci): pin npx fred-ssr and rari to their @mdn packages#44600

Open
caugner wants to merge 1 commit into
mainfrom
fred-1680-npx
Open

fix(ci): pin npx fred-ssr and rari to their @mdn packages#44600
caugner wants to merge 1 commit into
mainfrom
fred-1680-npx

Conversation

@caugner

@caugner caugner commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Description

  • .github/workflows/pr-test.yml: npx fred-ssrnpx --package=@mdn/fred fred-ssr
  • .github/workflows/pr-test.yml: npx rari …npx @mdn/rari …

Motivation

Prevent dependency-confusion fallbacks in npx fred-ssr and npx rari.

Additional details

npx <bin> resolves to the local bin only when present; otherwise npm silently downloads and runs a registry package literally named <bin>. In CI, npx assumes --yes, so this happens with no prompt. fred-ssr is a bin of @mdn/fred and its bare name is unpublished (squattable); the unscoped rari name is owned by an unrelated third party, not MDN. Pinning --package=@mdn/fred / @mdn/rari guarantees the intended bins.

Related issues and pull requests

Part of mdn/fred#1680.

@github-actions github-actions Bot added system [PR only] Infrastructure and configuration for the project size/xs [PR only] 0-5 LoC changed labels Jun 29, 2026
@caugner caugner marked this pull request as ready for review June 29, 2026 16:11
@caugner caugner requested a review from a team as a code owner June 29, 2026 16:11
@caugner caugner requested review from LeoMcA and removed request for a team June 29, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs [PR only] 0-5 LoC changed system [PR only] Infrastructure and configuration for the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants