You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Restore SFW blocking tests after Socket API errors are fixed #161
On 2026-09-16, sfw vp install lodahs returned exit code 0 without a block message. This failed the Linux, macOS, and Windows jobs in test-sfw-blocks-malicious, plus the final blocking check in test-sfw-with-socketdev-action.
Error occurred: error while fetching package alerts
{"errors":["Malformed Socket API response (Invalid input)"],"purlStrings":["pkg:npm/lodahs@0.0.1-security"]}
The same error occurs with the alternatives crossenv, babelcli, mongose, axois, node-click, and webb3. SFW allows their security placeholder downloads. A benign control, is-odd@3.0.1, produces a normal packageAllowed event. These results indicate a failure in alert handling, so changing the test package does not resolve the failure.
To reproduce without executing package code, run this command with a fresh SFW process:
The temporary fix skips the test-sfw-blocks-malicious job and the final malicious-package assertion in test-sfw-with-socketdev-action. The other SFW setup and installation checks remain enabled.
Follow-up:
Confirm that SFW can fetch alerts and block a documented test package. Update the pinned SFW version if the upstream fix requires it.
Remove both temporary if: ${{ false }} conditions from .github/workflows/test.yml.
Confirm a nonzero exit and the package-specific block message on Linux, macOS, and Windows, and through socketdev/action.
Keep both assertions: a network error or registry 404 alone must not count as a successful SFW block.
Activity
chore(ci): temporarily skip sfw blocking checks (#162)
trueberryless commentedon Oct 30, 2026
Thanks for tracking this issue here! I just wanted to also leave an example workflow here where we are affected of this: https://github.com/npmx-dev/npmx.dev/actions/runs/41127624360/job/124310131390