Skip to content

Commit 009d8d3

Browse files
committed
Merge branch 'v4' into experiment
2 parents b9a5243 + 68a674f commit 009d8d3

42 files changed

Lines changed: 612 additions & 261 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
- package-ecosystem: "docker"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"

.github/workflows/automerge.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# name: Dependabot Auto-merge
2+
# on:
3+
# pull_request:
4+
# types: [opened, synchronize, reopened]
5+
6+
# permissions:
7+
# contents: write
8+
# pull-requests: write
9+
10+
# jobs:
11+
# dependabot-automerge:
12+
# runs-on: ubuntu-latest
13+
# if: github.actor == 'dependabot[bot]'
14+
# steps:
15+
# - name: Dependabot metadata
16+
# id: metadata
17+
# uses: dependabot/fetch-metadata@v1
18+
# with:
19+
# github-token: "${{ secrets.GITHUB_TOKEN }}"
20+
21+
# - name: Auto-merge minor and patch updates
22+
# if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
23+
# run: |
24+
# gh pr merge --auto --squash "$PR_URL"
25+
# env:
26+
# PR_URL: ${{ github.event.pull_request.html_url }}
27+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/depoy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ jobs:
1414
- name: "Set Heroku app & branch for ${{ github.ref }}"
1515
run: |
1616
echo $GITHUB_REF
17-
if [ "$GITHUB_REF" == "refs/heads/master" ]; then
17+
if [ "$GITHUB_REF" == "refs/heads/main" ]; then
1818
echo "HEROKU_APP=" >> $GITHUB_ENV
19-
echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
2019
fi
21-
echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
20+
echo "HEROKU_BRANCH=main" >> $GITHUB_ENV
2221
- name: Install Heroku CLI
2322
run: |
2423
curl https://cli-assets.heroku.com/install.sh | sh

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
workflow_dispatch:
77
schedule:
88
- cron: "0 7 * * *"
@@ -23,7 +23,7 @@ jobs:
2323
- name: Semantic Release
2424
uses: cycjimmy/semantic-release-action@v4
2525
with:
26-
branch: 'master'
26+
branch: 'main'
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
- name: Get Semantic Release Version
@@ -61,19 +61,19 @@ jobs:
6161
env:
6262
GITHUB_TOKEN: ${{secrets.ACCESS_TOKEN}}
6363
heroku:
64-
if: github.repository == 'devsecopsmaturitymodel/DevSecOps-MaturityModel' && github.event_name == 'push' && github.ref == 'refs/heads/master'
64+
if: github.repository == 'devsecopsmaturitymodel/DevSecOps-MaturityModel' && github.event_name == 'push' && github.ref == 'refs/heads/main'
6565
runs-on: ubuntu-latest
6666
steps:
6767
- name: "Check out Git repository"
6868
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
6969
- name: "Set Heroku app & branch for ${{ github.ref }}"
7070
run: |
7171
echo $GITHUB_REF
72-
if [ "$GITHUB_REF" == "refs/heads/master" ]; then
72+
if [ "$GITHUB_REF" == "refs/heads/main" ]; then
7373
echo "HEROKU_APP=" >> $GITHUB_ENV
74-
echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
74+
echo "HEROKU_BRANCH=main" >> $GITHUB_ENV
7575
fi
76-
echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
76+
echo "HEROKU_BRANCH=main" >> $GITHUB_ENV
7777
- name: Install Heroku CLI
7878
run: |
7979
curl https://cli-assets.heroku.com/install.sh | sh

.github/workflows/stale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
recent activity. :calendar: It will be _closed automatically_ in two weeks if no further activity occurs.
1818
close-issue-message: This issue was closed because it has been stalled for 7 days with no activity.
1919
close-pr-message: This PR was closed because it has been stalled for 20 days with no activity.
20-
days-before-stale: 20
20+
days-before-stale: 35
2121
days-before-close: 7
2222
days-before-pr-close: 20
2323
exempt-issue-labels: 'critical,technical debt'

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"branch": "master",
2+
"branch": "main",
33
"plugins": [
44
[
55
"@semantic-release/commit-analyzer",

Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
FROM node:18.7-alpine AS build
1+
FROM node:24.7.0-alpine3.22 AS build
22

33
WORKDIR /usr/src/app
44
COPY package.json package-lock.json ./
5-
RUN apk add --upgrade python3 build-base \
6-
&& npm install
5+
6+
RUN apk add --upgrade python3 build-base py3-setuptools py3-pip && \
7+
pip3 install setuptools \
8+
&& npm install
79
COPY . .
8-
RUN npm run build
10+
RUN npm run build --configuration=production
11+
912

10-
FROM wurstbrot/dsomm-yaml-generation as yaml
13+
FROM wurstbrot/dsomm-yaml-generation:1.16.0 AS yaml
1114

12-
FROM caddy
13-
ENV PORT 8080
15+
FROM caddy:2.10.2
16+
ENV PORT=8080
1417

1518
COPY Caddyfile /etc/caddy/Caddyfile
1619
COPY --from=build ["/usr/src/app/dist/dsomm/", "/srv"]
17-
COPY --from=yaml ["/var/www/html/src/assets/YAML/generated/generated.yaml", "/srv/assets/YAML/generated/generated.yaml"]
20+
COPY --from=yaml ["/var/www/html/src/assets/YAML/generated/generated.yaml", "/srv/assets/YAML/generated/generated.yaml"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ yarn build
121121
The definition of the activities are in the [data-repository](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data).
122122

123123
## Teams and Groups
124-
To customize these teams, you can create your own [meta.yaml](src/assets/meta.yaml) file with your unique team definitions.
124+
To customize these teams, you can create your own [meta.yaml](src/assets/YAML/meta.yaml) file with your unique team definitions.
125125

126126
Assessments within the framework can be based on either a team or a specific application, which can be referred to as the context. Depending on how you define the context or teams, you may want to group them together.
127127

128128
Here are a couple of examples to illustrate this, in breakers the DSOMM word:
129129
- Multiple applications (teams) can belong to a single overarching team (application).
130130
- Multiple teams (teams) can belong to a larger department (group).
131131

132-
Feel free to create your own [meta.yaml](src/assets/meta.yaml) file to tailor the framework to your specific needs and mount it in your environment (e.g. kubernetes or docker).
132+
Feel free to create your own [meta.yaml](src/assets/YAML/meta.yaml) file to tailor the framework to your specific needs and mount it in your environment (e.g. kubernetes or docker).
133133
Here is an example to start docker with customized meta.yaml:
134134
```
135135
# Customized meta.yaml

0 commit comments

Comments
 (0)