Skip to content

Commit 93b85a5

Browse files
authored
Fix tests (#552)
1 parent d7ede9b commit 93b85a5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/commands/cdxgen/cmd-cdxgen.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ describe('socket cdxgen', async () => {
4040
--project-id Dependency track project id. Either provide the id or the project name and version together [string]
4141
--parent-project-id Dependency track parent project id [string]
4242
--required-only Include only the packages with required scope on the SBOM. Would set compositions.aggregate to incomplete unless --no-auto-compositions is passed. [boolean]
43-
--fail-on-error Fail if any dependency extractor fails. [boolean] [default: true]
43+
--fail-on-error Fail if any dependency extractor fails. [boolean]
4444
--no-babel Do not use babel to perform usage analysis for JavaScript/TypeScript projects. [boolean]
4545
--generate-key-and-sign Generate an RSA public/private key pair and then sign the generated SBOM using JSON Web Signatures. [boolean]
4646
--server Run cdxgen as a server [boolean]
4747
--server-host Listen address [default: "127.0.0.1"]
4848
--server-port Listen port [default: "9090"]
49-
--install-deps Install dependencies automatically for some projects. Defaults to true but disabled for containers and oci scans. Use --no-install-deps to disable this feature. [boolean] [default: false]
49+
--install-deps Install dependencies automatically for some projects. Defaults to true but disabled for containers and oci scans. Use --no-install-deps to disable this feature. [boolean] [default: true]
5050
--validate Validate the generated SBOM using json schema. Defaults to true. Pass --no-validate to disable. [boolean] [default: true]
5151
--evidence Generate SBOM with evidence for supported languages. [boolean] [default: false]
5252
--spec-version CycloneDX Specification version to use. Defaults to 1.6 [number] [choices: 1.4, 1.5, 1.6] [default: 1.6]

src/shadow/npm/bin.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default async function shadowBin(
2929
const progressArg = rawBinArgs.findLast(isProgressFlag) !== '--no-progress'
3030
const otherArgs = terminatorPos === -1 ? [] : args.slice(terminatorPos)
3131
const permArgs =
32-
binName === 'npx' &&
32+
binName === 'npm' &&
3333
// Lazily access constants.SUPPORTS_NODE_PERMISSION_FLAG.
3434
constants.SUPPORTS_NODE_PERMISSION_FLAG
3535
? await (async () => {

0 commit comments

Comments
 (0)