-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved secure mode warnings #1609
Conversation
@@ -411,6 +411,10 @@ const options = Object.assign({}, args, { | |||
noBabel: args.noBabel || args.babel === false, | |||
project: args.projectId, | |||
deep: args.deep || args.evidence, | |||
output: | |||
isSecureMode && args.output === "bom.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do this always or only in secure mode. Currently, the bom.json
will be created in the current working directory.
@@ -419,6 +423,13 @@ if (process.argv[1].includes("cbom")) { | |||
options.specVersion = 1.6; | |||
options.deep = true; | |||
} | |||
if (process.argv[1].includes("cdxgen-secure")) { | |||
console.log( | |||
"NOTE: Secure mode only restricts cdxgen from performing certain activities such as package installation. It does not provide security guarantees in the presence of malicious code.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if we this message is enough. Should we use a different word instead of secure?
Signed-off-by: Prabhu Subramanian <[email protected]>
c58b676
to
1aa6f07
Compare
No description provided.