Skip to content

Commit 9eaf69b

Browse files
committed
Start refactoring
1 parent dcd4c34 commit 9eaf69b

3 files changed

Lines changed: 37 additions & 4 deletions

File tree

data-new/BuildAndDeployment/Sub-Dimensions.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ Build:
3030
time: 2
3131
resources: 2
3232
usefulness: 2
33+
level: 2
3334
implementation:
3435
- Container technologies and orchestration like Docker, Kubernetes
3536
- *ci-cd
36-
level: 2
37-
samm2: i-secure-build|A|2
38-
iso27001-2017:
39-
- 14.2.6
37+
references:
38+
samm2:
39+
- i-secure-build|A|2
40+
iso27001-2017:
41+
- 14.2.6
4042
Defined build process:
4143
risk:
4244
- Performing builds without a defined process is error prone; for example, as

data/strings.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44
#
55
strings:
66
en: &en
7+
references:
8+
samm:
9+
label: OWASP SAMM (Software Assurance Maturity Model)
10+
description: |-
11+
Software Assurance Maturity Model
12+
The Software Assurance Maturity Model (SAMM) is an open framework to help organizations formulate
13+
and implement a strategy for software security that is tailored
14+
to the specific risks facing the organization.
15+
samm2:
16+
label: OWASP SAMM VERSION 2
17+
description: |-
18+
https://owaspsamm.org/blog/2020/01/31/samm2-release/
719
labels: ["Very Low", "Low", "Medium", "High", "Very High"]
820
hardness: ["Very soft", "Soft", "Medium", "High", "Very high"]
921
maturity_levels: ["Level 1: Basic understanding of security practices" ,

detail.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ function printDetail($dimension, $subdimension, $activityName, $dimensions, $rep
7878
$comment = $element['comment'];
7979
echo "<div><b>Comments:</b> $comment</div>";
8080
}
81+
82+
printReferences($element);
83+
8184
if (array_key_exists("samm", $element) && !empty($element['samm'])) {
8285
$samm = $element['samm'];
8386
echo "<div><b>OWASP SAMM 1 Mapping:</b> $samm</div>";
@@ -97,4 +100,20 @@ function printDetail($dimension, $subdimension, $activityName, $dimensions, $rep
97100
}
98101
}
99102

103+
function printReferences($element) {
104+
if (!array_key_exists("references", $element)) {
105+
return;
106+
}
107+
$actionLabels = readYaml("data/strings.yml#/actionLabels");
108+
$referenceLabels = readYaml("data/strings.yml#/strings/en/references");
109+
110+
$references = $element['references'];
111+
foreach ($references as $r => $values) {
112+
$label = $referenceLabels[$r]['label'] ? $referenceLabels[$r]['label'] : $r ;
113+
echo "<div><h3>$label</h3></div>";
114+
echo "<ul><li>". implode("</li><li>", $values) ."</li></ul>";
115+
}
116+
117+
118+
}
100119
printDetail($dimension, $subdimension, $activityName, $dimensions);

0 commit comments

Comments
 (0)