-
-
Notifications
You must be signed in to change notification settings - Fork 26
feat: add OWASP analysis fields to FindingAudit component #465
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: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -112,6 +112,62 @@ | |
| trim | ||
| /> | ||
| </b-form-group> | ||
| <b-form-group | ||
| v-if="owaspVector" | ||
| id="fieldset-owasp-vector" | ||
| label="OWASP RR Vector" | ||
| label-for="input-owasp-vector" | ||
| > | ||
| <b-form-input | ||
| id="input-owasp-vector" | ||
| :value="owaspVector" | ||
| class="form-control disabled" | ||
| readonly | ||
| trim | ||
| /> | ||
| </b-form-group> | ||
| <b-form-group | ||
| v-if="owaspScore" | ||
| id="fieldset-owasp-score" | ||
| label="OWASP RR Score" | ||
| label-for="input-owasp-score" | ||
| > | ||
| <b-form-input | ||
| id="input-owasp-score" | ||
| :value="owaspScore" | ||
| class="form-control disabled" | ||
| readonly | ||
| trim | ||
| /> | ||
| </b-form-group> | ||
| <b-form-group | ||
| v-if="owaspSeverity" | ||
| id="fieldset-owasp-severity" | ||
| label="OWASP RR Severity" | ||
| label-for="input-owasp-severity" | ||
| > | ||
| <b-form-input | ||
| id="input-owasp-severity" | ||
| :value="owaspSeverity" | ||
| class="form-control disabled" | ||
| readonly | ||
| trim | ||
| /> | ||
| </b-form-group> | ||
| <b-form-group | ||
| v-if="analysisSource" | ||
| id="fieldset-analysis-source" | ||
| label="Analysis Source" | ||
| label-for="input-analysis-source" | ||
| > | ||
|
Comment on lines
+115
to
+162
|
||
| <b-form-input | ||
| id="input-analysis-source" | ||
| :value="analysisSource" | ||
| class="form-control disabled" | ||
| readonly | ||
| trim | ||
| /> | ||
| </b-form-group> | ||
| </b-col> | ||
| <b-col sm="6"> | ||
| <b-form-group | ||
|
|
@@ -351,6 +407,10 @@ export default { | |
| analysisJustification: null, | ||
| analysisResponse: null, | ||
| analysisDetails: null, | ||
| owaspVector: null, | ||
| owaspScore: null, | ||
| owaspSeverity: null, | ||
| analysisSource: null, | ||
| }; | ||
| }, | ||
| watch: { | ||
|
|
@@ -433,6 +493,18 @@ export default { | |
| } else { | ||
| this.isSuppressed = false; | ||
| } | ||
| if (Object.prototype.hasOwnProperty.call(analysis, 'owaspVector')) { | ||
| this.owaspVector = analysis.owaspVector; | ||
| } | ||
| if (Object.prototype.hasOwnProperty.call(analysis, 'owaspScore')) { | ||
| this.owaspScore = analysis.owaspScore; | ||
| } | ||
| if (Object.prototype.hasOwnProperty.call(analysis, 'owaspSeverity')) { | ||
| this.owaspSeverity = analysis.owaspSeverity; | ||
| } | ||
| if (Object.prototype.hasOwnProperty.call(analysis, 'source')) { | ||
| this.analysisSource = analysis.source; | ||
| } | ||
|
Comment on lines
+496
to
+507
|
||
| }, | ||
| makeAnalysis: function () { | ||
| this.callRestEndpoint( | ||
|
|
||
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.
v-if="owaspScore"will hide the score when it is0/0.0, even though that may be a valid OWASP RR score. Consider checking for null/undefined instead (e.g.,owaspScore !== null && owaspScore !== undefined) so a zero score still renders.