-
Notifications
You must be signed in to change notification settings - Fork 25
assets/DP-39285-update-all-icons #2019
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
base: develop
Are you sure you want to change the base?
Conversation
970d4bc to
ac6fdc8
Compare
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.
Prisma Cloud has found errors in this PR ⬇️
|
|
||
| } catch (error) { | ||
| console.error(`❌ Error processing ${file}:`, error.message); | ||
| } |
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.
Information exposure through an error message
File: icon-strip-fills.js | Checkov ID: CKV3_SAST_160
How To Fix
throw new Error('An unexpected error occurred');
Description
CWE: CWE-209: Generation of Error Message Containing Sensitive Information
OWASP: A04:2021-Insecure Design
CWE-209: Generation of Error Message Containing Sensitive InformationOWASP:
A04:2021-Insecure DesignThis policy detects information exposure through an error message. If the code contains a pattern that matches either console.trace() or a try-catch block with a function containing one of the following methods: console.log, console.error, console.warn, alert, prompt, or confirm, and the catch block includes a variable $ERR or a variable that contains sensitive information such as message, stack, status, or name, then it is considered a vulnerability.
Vulnerable code example:
javascript
console.trace('Error message containing sensitive information');
The above code is vulnerable because it directly exposes sensitive information through the console.trace method.
…ths with lg- prefix
Description
This PR:
)
icon()function in patternlab/openmass has been extended to take inname,width,height,classnameBefore:
After:

To Test:
Test in Mayflower
rush iconsThis script does a few things:
prepIconsjob in theassetspackage to strip fill and other attributes from the Figma exported svg icons, and run svgo lossless optimization on themTest in Openmass: