SlopLock
Version updated for https://github.com/theinfosecguy/sloplock to version v2.0.0.
- This action is used across all versions by 0 repositories.
Action Type
This is a Node action using Node version 24.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
SlopLock is a GitHub Action that checks package names before they are installed or merged, ensuring the packages exist and are not too new. It identifies AI-hallucinated, nonexistent, and too-new dependencies by asking eight public registries if they exist and have sufficient history to trust them. The tool posts comments on pull requests with details about the findings and helps maintain a secure dependency ecosystem.
What’s Changed
SlopLock v2.0.0
This major release adds a direct package-checking library API, removes unused public type surface, and improves dependency discovery and failure reporting across the CLI and GitHub Action.
Library API
- Adds
checkPackages()for checking normalized package names without a repository checkout. - Returns registry results, policy findings, warnings, and registry failures in deterministic input order.
- Exports the default registry client, package-name normalization helpers, and public error classes from the package entry point.
- Keeps source-free package checks separate from the source-backed
scan()finding contract.
Breaking Changes
- Removes the unused
ScanOptions.failClosedlibrary option. CLI and GitHub Action--fail-closedbehavior is unchanged; library callers should inspectregistryFailuresin the returned result. - Narrows
SourceKindto the values produced by supported parsers:manifestandlockfile. - Removes the unused
ScanModetype.
Scanner And CLI Reliability
- Skips common virtual environment, vendored dependency, and build-output directories during full and changed-only discovery.
- Resolves the remote default branch through
origin/HEADfor changed-only scans, withorigin/mainas the fallback. - Reports unreadable scan roots as usage errors and keeps JSON-mode failures as valid JSON.
- Handles partial cooldown configuration correctly and warns consistently about allow or ignore entries without expiry dates.
- Uses the shared runtime version constant for CLI version output and registry user agents.
Action And Registry Hardening
- Introduces the
theinfosecguy/sloplock@v2moving Action ref while leavingv1on the latest compatible 1.x release. - Keeps registry timeouts, rate limits, server failures, and malformed responses distinct from package-not-found findings.
- Preserves concise Action annotations, summaries, and optional pull request comments while retaining read-only-permission support.
- Updates generated artifacts for the Node 24 bundled Action before release.