Skip to content

fix(fixtures): rename package.json/yarn.lock to avoid security scan false positives#1026

Open
tolzhabayev wants to merge 1 commit intomainfrom
fix/rename-fixture-manifests
Open

fix(fixtures): rename package.json/yarn.lock to avoid security scan false positives#1026
tolzhabayev wants to merge 1 commit intomainfrom
fix/rename-fixture-manifests

Conversation

@tolzhabayev
Copy link
Copy Markdown
Collaborator

Summary

  • Renames package.json_package.json and removes committed yarn.lock files in the three fixture dirs (fixtures/usage/object-properties, fixtures/usage/grafana-plugin, fixtures/imports/package) so Dependabot stops raising false-positive vulnerability alerts for transitive deps in fixtures (e.g. uuid flagged via fixtures/imports/package/yarn.lock).
  • Updates setup-fixtures to copy _package.jsonpackage.json and touch yarn.lock (required for Yarn Berry to recognize each fixture as a standalone project) before running yarn install.
  • Adds .gitignore entries so the regenerated package.json / yarn.lock inside fixtures never get committed back.

Fixes #594

Test plan

  • yarn setup-fixtures succeeds (installs deps in all three fixtures)
  • yarn vitest run — 121 passed, 1 skipped
  • git status confirms regenerated fixture package.json / yarn.lock are ignored

…alse positives

Dependabot scanned the manifests and lockfiles inside `fixtures/` and raised
alerts for transitive deps that aren't shipped or run in production. Rename
each fixture `package.json` to `_package.json`, drop the committed
`yarn.lock` files, and regenerate both on `yarn setup-fixtures`. The new
script copies `_package.json` into place and touches an empty `yarn.lock`
(required by Yarn Berry to treat each fixture as a standalone project)
before installing. The generated files are now gitignored so they never
land in the committed tree where scanners would see them.

Fixes #594
@tolzhabayev tolzhabayev requested a review from a team as a code owner April 28, 2026 16:09
@tolzhabayev tolzhabayev self-assigned this Apr 28, 2026
@grafana-plugins-platform-bot grafana-plugins-platform-bot Bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Apr 28, 2026
Copy link
Copy Markdown
Collaborator

@leventebalogh leventebalogh left a comment

Choose a reason for hiding this comment

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

Nice 👏

@tolzhabayev tolzhabayev enabled auto-merge (squash) April 30, 2026 17:06
@tolzhabayev
Copy link
Copy Markdown
Collaborator Author

Need a @grafana/grafana-frontend-platform approval 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔬 In review

Development

Successfully merging this pull request may close these issues.

Use different file names for fixtures to avoid false positive security scans

2 participants