aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/sidebar
diff options
context:
space:
mode:
authorstanislavh <stanislav.honcharov@sonarsource.com>2024-07-19 10:33:19 +0200
committersonartech <sonartech@sonarsource.com>2024-07-24 20:02:47 +0000
commit1e4b5a6f824d15e4f1103cf64cf0dd2175b59195 (patch)
treeeec19110f6a88581ec034357f1c6e8a484944867 /server/sonar-web/src/main/js/apps/issues/sidebar
parentb6b153c18115ebae35f0feb0c2243eae0a62c05b (diff)
downloadsonarqube-1e4b5a6f824d15e4f1103cf64cf0dd2175b59195.tar.gz
sonarqube-1e4b5a6f824d15e4f1103cf64cf0dd2175b59195.zip
SONAR-22543 Introduce STIG & CASA reports
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/sidebar')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/StandardFacet.tsx34
1 files changed, 20 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/StandardFacet.tsx b/server/sonar-web/src/main/js/apps/issues/sidebar/StandardFacet.tsx
index fe35647d881..67a7c48c2ed 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/StandardFacet.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/StandardFacet.tsx
@@ -92,6 +92,8 @@ export class StandardFacet extends React.PureComponent<Props, State> {
sonarsourceSecurity: {},
'pciDss-3.2': {},
'pciDss-4.0': {},
+ 'stig-ASD_V5R3': {},
+ casa: {},
'owaspAsvs-4.0': {},
},
};
@@ -124,24 +126,28 @@ export class StandardFacet extends React.PureComponent<Props, State> {
loadStandards = () => {
getStandards().then(
({
- 'owaspTop10-2021': owaspTop102021,
- owaspTop10,
- cwe,
- sonarsourceSecurity,
- 'pciDss-3.2': pciDss32,
- 'pciDss-4.0': pciDss40,
- 'owaspAsvs-4.0': owaspAsvs40,
+ [SecurityStandard.OWASP_TOP10_2021]: owaspTop102021,
+ [SecurityStandard.OWASP_TOP10]: owaspTop10,
+ [SecurityStandard.CWE]: cwe,
+ [SecurityStandard.SONARSOURCE]: sonarsourceSecurity,
+ [SecurityStandard.PCI_DSS_3_2]: pciDss32,
+ [SecurityStandard.PCI_DSS_4_0]: pciDss40,
+ [SecurityStandard.OWASP_ASVS_4_0]: owaspAsvs40,
+ [SecurityStandard.STIG_ASD_V5R3]: stigV5,
+ [SecurityStandard.CASA]: casa,
}: Standards) => {
if (this.mounted) {
this.setState({
standards: {
- 'owaspTop10-2021': owaspTop102021,
- owaspTop10,
- cwe,
- sonarsourceSecurity,
- 'pciDss-3.2': pciDss32,
- 'pciDss-4.0': pciDss40,
- 'owaspAsvs-4.0': owaspAsvs40,
+ [SecurityStandard.OWASP_TOP10_2021]: owaspTop102021,
+ [SecurityStandard.OWASP_TOP10]: owaspTop10,
+ [SecurityStandard.CWE]: cwe,
+ [SecurityStandard.SONARSOURCE]: sonarsourceSecurity,
+ [SecurityStandard.PCI_DSS_3_2]: pciDss32,
+ [SecurityStandard.PCI_DSS_4_0]: pciDss40,
+ [SecurityStandard.OWASP_ASVS_4_0]: owaspAsvs40,
+ [SecurityStandard.STIG_ASD_V5R3]: stigV5,
+ [SecurityStandard.CASA]: casa,
},
});
}