Skip to content

Fix typo: replace --ignore-script with --ignore-scripts in CI#21

Merged
alecgibson merged 1 commit intomainfrom
chore/npm-ignore-scripts-flag
Apr 2, 2026
Merged

Fix typo: replace --ignore-script with --ignore-scripts in CI#21
alecgibson merged 1 commit intomainfrom
chore/npm-ignore-scripts-flag

Conversation

@alecgibson
Copy link
Copy Markdown
Collaborator

Summary

  • Fixes a typo: --ignore-script--ignore-scripts in CI workflows
  • --ignore-script is not a valid npm flag and is silently ignored
  • --ignore-scripts (plural) is the correct flag, per the npm install docs

Test plan

  • Verify CI passes after merging

🤖 Generated with Claude Code

--ignore-script is not a valid npm flag. The correct flag is
--ignore-scripts (plural), as documented in the npm CLI docs:
https://docs.npmjs.com/cli/v10/commands/npm-install#ignore-scripts
Copilot AI review requested due to automatic review settings April 2, 2026 11:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI workflow to use the correct npm flag for disabling lifecycle scripts during dependency installation, aligning the pipeline with npm CLI behavior and the stated security intent.

Changes:

  • Fix CI install command typo by changing --ignore-script to the valid --ignore-scripts flag.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -33,7 +33,7 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
- name: Install
# Skip post-install to avoid malicious scripts stealing PAT
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment about skipping post-install scripts to avoid stealing a "PAT" is a bit misleading/inaccurate: this step sets NODE_AUTH_TOKEN from secrets.GITHUB_TOKEN (not a PAT), and lifecycle scripts are later re-enabled via the npm rebuild && npm run prepare step. Consider updating the comment to clarify that scripts are skipped only during the authenticated install step (and that the credential is GITHUB_TOKEN/auth token).

Suggested change
# Skip post-install to avoid malicious scripts stealing PAT
# During authenticated install, skip lifecycle scripts to reduce risk of
# malicious scripts exfiltrating the GITHUB_TOKEN auth token; scripts are
# re-enabled in the post-install step below.

Copilot uses AI. Check for mistakes.
@alecgibson alecgibson merged commit 260b00d into main Apr 2, 2026
7 checks passed
@alecgibson alecgibson deleted the chore/npm-ignore-scripts-flag branch April 2, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants