Skip to content

Commit

Permalink
Merge pull request #2 from devsecopsmaturitymodel/feat/openCRE
Browse files Browse the repository at this point in the history
feat: Add openCRE
  • Loading branch information
wurstbrot authored Nov 11, 2023
2 parents b92636c + aaff6d1 commit 75c2551
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion yaml-generation/generateDimensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,18 @@
echo "Warning: '$activityName -> evidence -> $team' has no evidence set but should have";
}
}
}

if (!array_key_exists("openCRE", $activity["references"]["openCRE"])) {
$dimensionsAggregated[$dimension][$subdimension][$activityName]["references"]["openCRE"] = array();
$dimensionsAggregated[$dimension][$subdimension][$activityName]["references"]["openCRE"][] = "https://www.opencre.org/rest/v1/standard/DevSecOps+Maturity+Model+(DSOMM)/${subdimension}/" + $dimensionsAggregated[$dimension][$subdimension][$activityName]["uuid"];
}

$dimensionsAggregated[$dimension][$subdimension][$activityName]["teamsImplemented"] = array_merge($teamsImplemented, $dimensionsAggregated[$dimension][$subdimension][$activityName]["teamsImplemented"], $evidenceImplemented);
// can be removed in 2024
if (array_key_exists("isImplemented", $activity)) {
unset($dimensionsAggregated[$dimension][$subdimension][$activityName]["evidence"]);
}
}
}
}
}
Expand Down

0 comments on commit 75c2551

Please sign in to comment.