Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improvement(platfor-286): commit e2e package-lock for npm ci determinism

Tre Dubravafe94b7c6b010
diff --git a/e2e/.gitignore b/e2e/.gitignore
index 5f880b28f5..34f2b0bc49 100644
--- a/e2e/.gitignore
+++ b/e2e/.gitignore
@@ -1,5 +1,4 @@
node_modules
-package-lock.json
playwright-report
test-results
.env
diff --git a/e2e/CLAUDE.md b/e2e/CLAUDE.md
index 0ebd43e824..d5917c3637 100644
--- a/e2e/CLAUDE.md
+++ b/e2e/CLAUDE.md
@@ -92,7 +92,7 @@ These external dependencies have to stay in sync — if you change the backend o
- **Worker changes ship via `wrangler deploy`**, not the gamma deploy. After editing Worker code (`/saml-idp/*` routes, IdP templates), deploy from the `preview-environments` repo before running the test or it'll hit the previous version. `tsc` passing here doesn't prove the Worker is up to date.
- **SCIM POST + SAML signup leak a user row per test run** because the SAML signup branch creates a fresh `users` row even though SCIM already created one. SCIM `DELETE /Users/:id` removes the membership but not the orphan user. Tractable but accumulates; revisit if it becomes noisy.
- **Don't add a `.npmrc` here for the 7-day minimum-release-age rule** — `e2e/` is a test harness, not a runtime artifact. The supply-chain concern that motivates the rule in `backend/`/`frontend/` doesn't apply.
-- **CI uses `npm install`, not `npm ci`** — we don't commit a lockfile yet. If you commit `package-lock.json`, switch the workflow to `npm ci` for determinism. Both are fine; just keep them consistent.
+- **CI uses `npm ci`** against the committed `package-lock.json` for determinism. If you change deps, regenerate the lockfile (`npm install`) and commit it in the same change, otherwise `npm ci` fails the prod gate.
- **Don't widen what the seed script creates** unless you've thought through the safety. It already refuses prod (host/dbname regex + `INFISICAL_ENV=prod` + interactive confirmation). Adding more powerful operations means re-evaluating the guard surface.
## Where context lives
diff --git a/e2e/package-lock.json b/e2e/package-lock.json
new file mode 100644
index 0000000000..aede4be7b2
--- /dev/null
+++ b/e2e/package-lock.json
@@ -0,0 +1,111 @@
+{
+ "name": "@infisical/e2e",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "@infisical/e2e",
+ "version": "0.1.0",
+ "devDependencies": {
+ "@playwright/test": "^1.55.1",
+ "@types/node": "20.17.10",
+ "dotenv": "16.4.7",
+ "typescript": "5.6.3"
+ }
+ },
+ "node_modules/@playwright/test": {
+ "version": "1.60.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "playwright": "1.60.0"
+ },
+ "bin": {
+ "playwright": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@types/node": {
+ "version": "20.17.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.19.2"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "16.4.7",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/playwright": {
+ "version": "1.60.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "playwright-core": "1.60.0"
+ },
+ "bin": {
+ "playwright": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "fsevents": "2.3.2"
+ }
+ },
+ "node_modules/playwright-core": {
+ "version": "1.60.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "playwright-core": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.6.3",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "6.19.8",
+ "dev": true,
+ "license": "MIT"
+ }
+ }
+}