Skip to content

Conversation

@brynary
Copy link
Member

@brynary brynary commented Nov 26, 2025

Summary

  • Add --ignore-scripts flag to npm ci/install commands in CI workflows

Rationale

This prevents npm from executing any lifecycle scripts (including postinstall) during dependency installation, reducing the attack surface from malicious packages.

Test plan

  • CI workflows still pass
  • Dependencies are installed correctly

🤖 Generated with Claude Code

This prevents npm from executing any lifecycle scripts (including
postinstall) during dependency installation, reducing the attack
surface from malicious packages.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings November 26, 2025 15:36
Copilot finished reviewing on behalf of brynary November 26, 2025 15:39
Copy link
Contributor

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

This PR enhances CI security by adding the --ignore-scripts flag to all npm install/ci commands, preventing execution of potentially malicious postinstall scripts during dependency installation in GitHub Actions workflows.

  • Adds --ignore-scripts flag to npm install and npm ci commands
  • Reduces attack surface from compromised or malicious npm packages

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/update_linter_versions.yml Added --ignore-scripts to npm install command for linter version updates
.github/workflows/plugins.yml Added --ignore-scripts to npm ci command for plugin tests

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

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