Skip to content

Commit 29ba91a

Browse files
committed
Syntax checks. Fix errors. See #68
1 parent c906c16 commit 29ba91a

4 files changed

Lines changed: 19 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ docker push $IMAGE_NAME
6969
```
7070
This approach also allows teams to perform self assessment with changes tracked in a repository.
7171

72+
7273
## Amazon EC2 Instance
7374

7475
1. In the _EC2_ sidenav select _Instances_ and click _Launch Instance_
@@ -89,6 +90,14 @@ service docker start
8990
docker run -d -p 80:80 wurstbrot/dsomm:latest
9091
```
9192

93+
## Tests
94+
95+
To run basic tests just
96+
97+
```bash
98+
docker-compose -f docker-compose.dev.yaml up test-php
99+
```
100+
92101
# Credits
93102
* The dimension _Test and Verification_ is based on Christian Schneiders [Security DevOps Maturity Model (SDOMM)](https://www.christian-schneider.net/SecurityDevOpsMaturityModel.html). _Application tests_ and _Infrastructure tests_ are added by Timo Pagel. Also, the sub-dimension _Static depth_ has been evaluated by security experts at [OWASP Stammtisch Hamburg](https://www.owasp.org/index.php/OWASP_German_Chapter_Stammtisch_Initiative/Hamburg).
94103
* The sub-dimension <i>Process</i> has been added after a discussion with [Francois Raynaud](https://www.linkedin.com/in/francoisraynaud/) that reactive activities are missing.

data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function build_table_tooltip($array, $headerWeight = 2) {
229229
if (IS_SHOW_EVIDENCE_TODO || $evidenceContent != "TODO")
230230
$html .= "<div><b>" . "Evidence" . ":</b> " . $evidenceContent . "</div>";
231231
$html .= "<hr />";
232-
$html .= "<h$headerWeight>Usefulness and Requirements of this Activitiy"</h$headerWeight>";
232+
$html .= "<h$headerWeight>Usefulness and Requirements of this Activitiy</h$headerWeight>";
233233
$html .= "<div><b>Usefullness:</b> " . ucfirst($mapUsefulness[$array['usefulness'] - 1]) . "</div>";
234234
$html .= "<div><b>Required knowledge:</b> " . ucfirst($mapKnowLedge[$array['difficultyOfImplementation']['knowledge'] - 1]) . "</div>";
235235
$html .= "<div><b>Required time:</b> " . ucfirst($mapTime[$array['difficultyOfImplementation']['time'] - 1]) . "</div>";

docker-compose.dev.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
version: "3.0"
22
services:
3-
dsomm:
3+
dsomm: &dsomm
44
build: .
55
volumes:
66
- .:/var/www/html
7+
working_dir: /var/www/html
78
ports:
89
- "8080:80"
9-
10+
test-php:
11+
<<: *dsomm
12+
volumes:
13+
- .:/var/www/html
14+
working_dir: /var/www/html
15+
entrypoint: ["/var/www/html/tests.sh"]

report-samm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$old_dimension = null;
2222

2323

24-
foreach (getActions($dimensions) as list($dimension, $subdimensions, $element) {
24+
foreach (getActions($dimensions) as list($dimension, $subdimensions, $element)) {
2525
if ($dimension != $old_dimension) {
2626
echo "<h1>Dimension $dimension</h1>";
2727
$old_dimension = $dimension;

0 commit comments

Comments
 (0)