-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add Custom rules to SAST scan #474
Conversation
@@ -92,6 +94,7 @@ export class SastRunner extends JasRunner { | |||
type: this._scanType, | |||
roots: this._config.GetSourceRoots(this._scanType), | |||
language: this._config.GetScanLanguage(), | |||
user_rules: Configuration.getSastCustomRulesPath(this._logManager), |
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.
I see user_rules
is assigned here - but where is it used? who calls this param inside Configuration
object?
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.
@hadarshjfrog, The configuration value is coming from the settings in the vscode as shared at the details
The value is than fetched using Configuration.getSastCustomRulesPath
and we pass it to the SAST scanner that uses it while running. (user_rules
is a new attribute in the scanner config)
npm run format
for formatting the code before submitting the pull request.Add Custom rules to the SAST scan in your workspace