Skip to content

Commit d278171

Browse files
authored
Merge pull request #56 from devsecopsmaturitymodel/feat/meta-on-top
feat: Releasing v4 of DSOMM app
2 parents 59518f9 + 36094a0 commit d278171

File tree

11 files changed

+94
-8206
lines changed

11 files changed

+94
-8206
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,16 @@ jobs:
5353
file: Dockerfile
5454
platforms: linux/amd64,linux/arm64
5555
tags: wurstbrot/dsomm-yaml-generation:${{ steps.get-version.outputs.version }},wurstbrot/dsomm-yaml-generation:latest
56-
- name: Extract generated.yaml
56+
- name: Extract generated files from docker image
5757
run: |
5858
docker run -d --name=yaml --entrypoint="/bin/sleep" wurstbrot/dsomm-yaml-generation:${{ steps.get-version.outputs.version }} 60
59-
docker cp yaml:/var/www/html/src/assets/YAML/generated/generated.yaml src/assets/YAML/generated/generated.yaml
60-
# Commit all changed files back to the repository
61-
- uses: planetscale/ghcommit-action@v0.1.6
59+
docker cp yaml:/var/www/html/generated/model.yaml generated/model.yaml
60+
docker cp yaml:/var/www/html/generated/dependency-tree.md generated/dependency-tree.md
61+
- name: Replace version placeholder in model.yaml
62+
run: |
63+
sed -i "s/__VERSION_PLACEHOLDER__/${{ steps.get-version.outputs.version }}/g" src/assets/YAML/model.yaml
64+
- name: Commit all changed files back to the repository
65+
uses: planetscale/ghcommit-action@v0.1.6
6266
with:
6367
commit_message: "🤖 fmt"
6468
repo: ${{ github.repository }}

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,10 @@ testem.log
4343
.DS_Store
4444
Thumbs.db
4545
/yaml-generation/vendor/
46-
# Generated YAML
46+
47+
48+
# Generated
4749
/src/assets/YAML/generated/generated.yaml
50+
/generated/model.yaml
51+
/generated/dependency-tree.md
52+
url-test-results.txt

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ RUN cd /var/www/html/yaml-generation && composer install \
1010
--prefer-dist
1111

1212
RUN pecl channel-update pecl.php.net && pecl install yaml && docker-php-ext-enable yaml
13-
RUN curl https://raw.githubusercontent.com/devsecopsmaturitymodel/DevSecOps-MaturityModel/refs/heads/main/src/assets/YAML/meta.yaml -o /var/www/html/src/assets/YAML/meta.yaml
14-
RUN echo "test" ; cat /var/www/html/src/assets/YAML/meta.yaml
1513
RUN cd /var/www/html && php yaml-generation/generateDimensions.php
1614
workdir /var/www/html
1715
CMD php yaml-generation/generateDimensions.php

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OWASP DevSecOps Maturity Model Data
22

3-
This GitHub project ([DevSecOps-MaturityModel-data](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data)) contains the source for the model itself, used by the DSOMM applciation [DevSecOps-MaturityModel](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel).
3+
This GitHub project ([DevSecOps-MaturityModel-data](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data)) contains the source for the DSOMM *model*. The model is used by the DSOMM applciation [DevSecOps-MaturityModel](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel).
44

55
The source files include dimensions, activities, descriptions, measures, and other model data used by the application.
66

@@ -12,7 +12,7 @@ Contributions that improve the DSOMM model are welcome. Please edit the source f
1212

1313
### Testing
1414

15-
After making changes, generate a new `activities.yaml` and use it in a local DSOMM application to verify there are no technical issues.
15+
After making changes, generate a new `model.yaml` and start a local DSOMM application to verify there are no technical issues. (See below.)
1616

1717

1818
## Usage
@@ -28,11 +28,7 @@ Depending on your platform use either `generateDimensions.bash` (Linux) or `gene
2828

2929
`cd yaml-generation`
3030

31-
3. Install dependencies:
32-
33-
`./generateDimensions.bash --install`
34-
35-
4. Generate `activities.yaml`:
31+
3. Generate `model.yaml`:
3632

3733
`./generateDimensions.bash`
3834

@@ -42,14 +38,16 @@ Depending on your platform use either `generateDimensions.bash` (Linux) or `gene
4238

4339
To start a local DSOMM instance on http://localhost:8080, run:
4440

45-
`./generateDimensions.bash --start-dsomm`
41+
- `./generateDimensions.bash --start-dsomm`
42+
43+
This will down the latest DSOMM docker image and spin it up as a docker container.
4644

4745

4846
### Test referenced URLs
4947

5048
To test all URLs referenced by `implementations.yaml` and save results to `url-test-results.txt`, run:
5149

52-
`./generateDimensions.bash --test-urls`
50+
- `./generateDimensions.bash --test-urls`
5351

5452

5553
### Using Podman instead of Docker

generated/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GitHub Actions will update these generated files.

src/assets/YAML/generated/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)