Skip to content

Commit 802bb91

Browse files
authored
Merge branch 'main' into feat/v4-review-level-1
2 parents f098fbc + 956e265 commit 802bb91

File tree

14 files changed

+1101
-94
lines changed

14 files changed

+1101
-94
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,21 @@ 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+
build-args: |
57+
DSOMM_VERSION=${{ steps.get-version.outputs.version }}
58+
GITHUB_REPOSITORY=${{ github.repository }}
59+
- name: Extract generated files from docker image
5760
run: |
5861
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
62+
docker cp yaml:/var/www/html/generated/model.yaml generated/model.yaml
63+
docker cp yaml:/var/www/html/generated/dependency-tree.md generated/dependency-tree.md
64+
- name: Force add ignored file
65+
run: git add -f generated/model.yaml generated/dependency-tree.md
66+
- name: Commit all changed files back to the repository
67+
uses: planetscale/ghcommit-action@v0.1.6
6268
with:
63-
commit_message: "🤖 fmt"
69+
commit_message: "🤖 push ${{ steps.get-version.outputs.version }}"
6470
repo: ${{ github.repository }}
6571
branch: ${{ github.head_ref || github.ref_name }}
6672
env:
67-
GITHUB_TOKEN: ${{secrets.ACCESS_TOKEN}}
73+
GITHUB_TOKEN: ${{secrets.ACCESS_TOKEN}}

.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

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# [1.25.0](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data/compare/v1.24.0...v1.25.0) (2025-12-15)
2+
3+
4+
* feat!: new structure ([2766a0a](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data/commit/2766a0ac2ced849735e5d63f351bc85d5137a0af))
5+
6+
7+
### BREAKING CHANGES
8+
9+
* generated moved to root with model.yaml instead of generated.yaml
10+
11+
# [1.24.0](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data/compare/v1.23.1...v1.24.0) (2025-12-15)
12+
13+
14+
* feat!: new structure ([4fc201f](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data/commit/4fc201f9e7e6c8210670cad65d37d8b3d82b9c9c))
15+
16+
17+
### BREAKING CHANGES
18+
19+
* generated moved to root with model.yaml instead of generated.yaml
20+
21+
### Bug Fixes
22+
23+
* Modify YAML generation to include version placeholder ([37958b5](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data/commit/37958b54e20b80b4401980a28b07616c964f35d5))
24+
125
## [1.20.1](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data/compare/v1.20.0...v1.20.1) (2025-11-24)
226

327

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
FROM php:apache-bullseye
2+
3+
ARG DSOMM_VERSION=dev
4+
ARG GITHUB_REPOSITORY=DevSecOpsMaturityModel-data
5+
26
RUN apt-get update && apt-get -y install apt-utils libyaml-dev wget unzip && wget -O composer-setup.php https://getcomposer.org/installer && php composer-setup.php --install-dir=/usr/local/bin --filename=composer
37
COPY yaml-generation /var/www/html/yaml-generation
8+
COPY generated /var/www/html/generated
49
COPY src /var/www/html/src
510
RUN cd /var/www/html/yaml-generation && composer install \
611
--ignore-platform-reqs \
@@ -10,8 +15,7 @@ RUN cd /var/www/html/yaml-generation && composer install \
1015
--prefer-dist
1116

1217
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
15-
RUN cd /var/www/html && php yaml-generation/generateDimensions.php
18+
RUN cd /var/www/html && GITHUB_REPOSITORY="${GITHUB_REPOSITORY}" php yaml-generation/generateDimensions.php && sed -i "s/__VERSION_PLACEHOLDER__/${DSOMM_VERSION}/g" /var/www/html/generated/model.yaml
1619
workdir /var/www/html
17-
CMD php yaml-generation/generateDimensions.php
20+
CMD php yaml-generation/generateDimensions.ph
21+

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.

0 commit comments

Comments
 (0)