Skip to content

security: disable postinstall/lifecycle scripts#561

Merged
KristianGrafana merged 1 commit intomainfrom
infosec/disable-lifecycle-scripts
Apr 28, 2026
Merged

security: disable postinstall/lifecycle scripts#561
KristianGrafana merged 1 commit intomainfrom
infosec/disable-lifecycle-scripts

Conversation

@KristianGrafana
Copy link
Copy Markdown
Contributor

Why

Lifecycle scripts (postinstall, prepare, etc.) run arbitrary code during
npm install / yarn install and are a common supply-chain attack vector.

What changed

  • .npmrcignore-scripts=true
  • .yarnrcignore-scripts true (Yarn Classic repos only)
  • .yarnrc.ymlenableScripts: false (Yarn Berry repos only)

References

Opened automatically by bulk_disable_scripts.py — ping #security with questions.

@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Apr 23, 2026

CLA assistant check
All committers have signed the CLA.

@grafana-plugins-platform-bot grafana-plugins-platform-bot Bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Apr 23, 2026
@KristianGrafana KristianGrafana merged commit 0a12e0f into main Apr 28, 2026
11 checks passed
@KristianGrafana KristianGrafana deleted the infosec/disable-lifecycle-scripts branch April 28, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🚀 Shipped

Development

Successfully merging this pull request may close these issues.

2 participants