ENG-9212: integration socket.dev in OSS integration tests#6280
Conversation
Greptile SummaryThis PR integrates Socket.dev supply-chain security scanning into the Key changes:
Issues found:
Confidence Score: 3/5Not safe to merge — the PATH construction will break the 'Run Website and Check for errors' step, replacing the system PATH with only the sfw-wrappers directory. There is a P1 defect in the PATH manipulation:
Important Files Changed
Sequence DiagramsequenceDiagram
participant GHA as GitHub Actions Runner
participant Socket as SocketDev/action (sfw)
participant UV as uv / pip
participant NPM as npm (via sfw wrapper)
participant Reflex as reflex init / integration.sh
GHA->>Socket: Install sfw binary (firewall-free mode)
GHA->>GHA: Create npm & bun wrapper scripts in $RUNNER_TEMP/sfw-wrappers/
GHA->>UV: sfw uv pip install -r requirements.txt
UV-->>Socket: Dependency scan (Python packages)
Socket-->>GHA: Allow / Block packages
GHA->>Reflex: uv run reflex init (npm NOT intercepted — wrappers not on PATH)
GHA->>GHA: Set env PATH=$RUNNER_TEMP/sfw-wrappers:${{env.PATH}}
Note over GHA: env.PATH is empty → system PATH lost
GHA->>NPM: which npm && npm -v (resolves to sfw wrapper)
NPM-->>Socket: npm calls intercepted by sfw
GHA->>Reflex: uv run integration.sh (uv not found if PATH broken)
Reviews (1): Last reviewed commit: "ENG-9212: integration socket.dev in OSS ..." | Re-trigger Greptile |
This reverts commit 88d0a0e.
the sfw shims are expecting bun to exist
No description provided.