- Added project's version to the
--projectargument.
- Upgrade
purify-tsto version 2.1.4 to avoid broken versions.
- The support for Node 18 has been dropped. The minimum required Node version is now 20.
- Upgrade
undicito version 7. This makes the program incompatible with Node 18.
This also fixes CVE-2024-24750. - Use environment variables
OSS_INDEX_USERNAMEandOSS_INDEX_PASSWORDto set the parameters--ossIndexUserand--ossIndexPasswordwhile calling the dependency-check-cli.
- Search for package managers' lock files if the
--scanargument is not present. - Fixed incompatibility with Node 18/20 when using
--proxyargument. - Append proxy configuration to
JAVA_OPTSinstead of replacing it.
This allows the caller to provide other Java options to the dependency-check-cli. - Validate GitHub release information before downloading the dependency-check-cli.
- Added
commanderas dependency to fix problems withyarn.
- Clean
--bindirectory before installing a new version of the dependency-check-cli. - Added parameter
--keep-old-versionsto prevent removal of other installations in--bindirectory. - The dependency
@colors/colorshas been replaced withansis. - The dependency
commanderhas been upgraded to version 14. - Added parameter
--java-binto set Java binary.
This sets theJAVACMDenvironment variable before calling the dependency-check-cli.
- Use
rollupandterserto create a single file compressed release version. - Removed
CHANGELOG.mdfrom release package.
- The output of the
--versionparameter was fixed. It now displays the version of owasp-dependency-check instead of the version of the analyzed project. - The dependencies
node-fetchandnodejs-file-downloaderhave been replaced withundici. - The dependency
rimrafhas been replaced withfsPromises.rm(). - Remove the downloaded zip file after successfully unzipping it.
- Changed behavior of the
--odc-versionparameter. If the version is not specified, the latest version of the dependency-check-cli will be used. The explicit valuelatestis no longer supported. - If no explicit version of the dependency-check-cli is specified, and the latest available version is not yet installed, it will be downloaded and used.
- Added parameter
--hide-owasp-outputto not display logging from the dependency-check-cli during execution.
- Added missing shebang which prevented the program from running correctly.
- Removed creation of a log file if an error occurs during installation.
- The exit code is always not equal to zero if an error occurs. The exit code of the dependency-check-cli will be used as the exit code for this program.
- Added parameter
--ignore-errorswhich forces the program to always exit with code 0. - Filter secrets from the output of the dependency-check-cli command being executed.
- Use
JAVA_OPTSinstead ofJAVA_TOOL_OPTIONSto pass proxy configuration to the dependency-check-cli. This prevents the JVM from printing the proxy's password to stderr.
- Fixed bug with default
--datadirectory on Windows.
- Added support for the environment variable GITHUB_TOKEN which can be used instead of the
--github-tokenparameter. The CLI parameter takes precedence over the environment variable. - Added support for the environment variable NVD_API_KEY. If set and
--nvdApiKeyis not provided on the command line, this will set the parameter--nvdApiKeywhile calling the dependency-check-cli. - The output of the dependency-check-cli is displayed during execution.
- Added a new CLI option
--github-tokento set a GitHub access token to authenticate against the GitHub API. This can be used to increase the rate limit of the API, especially in corporate VPNs.