Skip to content

Commit e1691cb

Browse files
authored
Merge pull request DefectDojo#4374 from DefectDojo/release/1.15.0
Release: Merge release into master from: release/1.15.0
2 parents 4a9a4e4 + 3594816 commit e1691cb

File tree

343 files changed

+101068
-18265
lines changed

Some content is hidden

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

343 files changed

+101068
-18265
lines changed

.github/workflows/cancel-outdated-workflow-runs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 3
1515
steps:
16-
- uses: styfle/cancel-workflow-action@0.8.0
16+
- uses: styfle/cancel-workflow-action@0.9.0
1717
with:
1818
workflow_id: 'integration-tests.yml,k8s-testing.yml,unit-tests.yml'
1919
access_token: ${{ github.token }}

.github/workflows/k8s-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
uses: actions/checkout@v2
121121

122122
- name: Setup Minikube
123-
uses: manusa/actions-setup-minikube@v2.3.1
123+
uses: manusa/actions-setup-minikube@v2.4.0
124124
with:
125125
minikube version: 'v1.14.2'
126126
kubernetes version: ${{ matrix.k8s }}

.github/workflows/new-release-master-into-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
grep appVersion helm/defectdojo/Chart.yaml
5555
grep version components/package.json
5656
- name: Push version changes
57-
uses: stefanzweifel/git-auto-commit-action@v4.9.2
57+
uses: stefanzweifel/git-auto-commit-action@v4.10.0
5858
with:
5959
commit_user_name: "${{ env.GIT_USERNAME }}"
6060
commit_user_email: "${{ env.GIT_EMAIL }}"
@@ -66,7 +66,7 @@ jobs:
6666
- name: Create Pull Request
6767
env:
6868
REPO_ORG: ${{ steps.set-repo-org.outputs.repoorg }}
69-
uses: actions/github-script@v3
69+
uses: actions/github-script@v4
7070
with:
7171
github-token: ${{ secrets.GITHUB_TOKEN }}
7272
script: |

.github/workflows/new-release-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
grep appVersion helm/defectdojo/Chart.yaml
6161
grep version components/package.json
6262
- name: Push version changes
63-
uses: stefanzweifel/git-auto-commit-action@v4.9.2
63+
uses: stefanzweifel/git-auto-commit-action@v4.10.0
6464
with:
6565
commit_user_name: "${{ env.GIT_USERNAME }}"
6666
commit_user_email: "${{ env.GIT_EMAIL }}"
@@ -72,7 +72,7 @@ jobs:
7272
- name: Create Pull Request
7373
env:
7474
REPO_ORG: ${{ steps.set-repo-org.outputs.repoorg }}
75-
uses: actions/github-script@v3
75+
uses: actions/github-script@v4
7676
with:
7777
github-token: ${{ secrets.GITHUB_TOKEN }}
7878
script: |

.github/workflows/new-release-tag-docker.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@ jobs:
3030
run: |
3131
git tag -a ${{ github.event.inputs.release_number }} -m "[bot] release ${{ github.event.inputs.release_number }}"
3232
git push origin ${{ github.event.inputs.release_number }}
33+
- name: Install Helm
34+
uses: azure/setup-helm@v1
35+
with:
36+
version: v3.4.0
37+
- name: Configure Helm repos
38+
run: |
39+
helm repo add stable https://charts.helm.sh/stable
40+
helm repo add bitnami https://charts.bitnami.com/bitnami
41+
helm dependency list ./helm/defectdojo
42+
helm dependency update ./helm/defectdojo
43+
- name: Package Helm chart
44+
id: package-helm-chart
45+
run: |
46+
mkdir build
47+
helm package helm/defectdojo/ --destination ./build
48+
echo "::set-output name=chart_version::$(ls build | cut -d '-' -f 2 | sed 's|\.tgz||')"
3349
- name: Create release ${{ github.event.inputs.release_number }}
3450
id: create_release
3551
uses: actions/create-release@v1
@@ -42,6 +58,34 @@ jobs:
4258
Fill in with release drafter information manually for now, then publish.
4359
draft: true
4460
prerelease: false
61+
- name: Upload Release Asset
62+
id: upload-release-asset
63+
uses: actions/upload-release-asset@v1
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
with:
67+
upload_url: ${{ steps.create_release.outputs.upload_url }}
68+
asset_path: ./build/defectdojo-${{ steps.package-helm-chart.outputs.chart_version }}.tgz
69+
asset_name: defectdojo-${{ steps.package-helm-chart.outputs.chart_version }}.tgz
70+
asset_content_type: application/tar+gzip
71+
- name: Update Helm repository index
72+
id: update-helm-repository-index
73+
run: |
74+
git config --global user.name "${{ env.GIT_USERNAME }}"
75+
git config --global user.email "${{ env.GIT_EMAIL }}"
76+
git remote update
77+
git fetch --all
78+
git checkout helm-charts
79+
git pull
80+
if [ ! -f ./index.yaml ]; then
81+
helm repo index ./build --url "${{ GITHUB_SERVER_URL }}/${{ GITHUB_REPOSITORY }}/releases/download/${{ github.event.inputs.release_number }}/"
82+
else
83+
helm repo index ./build --url "${{ GITHUB_SERVER_URL }}/${{ GITHUB_REPOSITORY }}/releases/download/${{ github.event.inputs.release_number }}/" --merge ./index.yaml
84+
fi
85+
cp -f ./build/index.yaml ./index.yaml
86+
git add ./index.yaml
87+
git commit -m "Update index.yaml"
88+
git push -u origin helm-charts
4589
4690
4791
job-build-and-push:

.github/workflows/plantuml.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
args: -v -tpng ${{ steps.getfile.outputs.files }}
3232
- name: Push Local Changes
33-
uses: stefanzweifel/git-auto-commit-action@v4.9.2
33+
uses: stefanzweifel/git-auto-commit-action@v4.10.0
3434
with:
3535
commit_user_name: "PlantUML_bot"
3636
commit_user_email: "[email protected]"

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ dojo/uploads/risk/*
7676
dojo/uploads/reports/*
7777
dojo/scans/scan*
7878
dojo/uploads/threat/*
79-
dojo/fixtures/initial_surveys.json
79+
# dojo/fixtures/initial_surveys.json
8080
.idea
8181
*.sqlite
8282
*.db
@@ -130,4 +130,4 @@ docker/extra_settings/*
130130
helm/defectdojo/charts
131131

132132
# generates files for github pages
133-
public
133+
public

Dockerfile.nginx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ COPY dojo/ ./dojo/
6565

6666
RUN env DD_SECRET_KEY='.' python3 manage.py collectstatic --noinput && true
6767

68-
FROM nginx:1.19.8-alpine@sha256:e20c21e530f914fb6a95a755924b1cbf71f039372e94ac5ddcf8c3b386a44615
68+
FROM nginx:1.19.10-alpine@sha256:07ab71a2c8e4ecb19a5a5abcfb3a4f175946c001c8af288b1aa766d67b0d05d2
6969
ARG uid=1001
7070
ARG appuser=defectdojo
7171
COPY --from=collectstatic /app/static/ /usr/share/nginx/html/static/

KUBERNETES.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@ For development purposes,
99
and [Helm](https://helm.sh/) can be installed locally by following
1010
this [guide](https://helm.sh/docs/using_helm/#installing-helm).
1111

12+
## Helm chart
13+
Starting with version 1.14.0, a helm chart will be pushed onto the `helm-charts` branch during the release process. Don't look for a chart museum, we're leveraging the "raw" capabilities of GitHub at this time.
14+
15+
To use it, you can add our repo.
16+
17+
```
18+
$ helm repo add helm-charts 'https://raw.githubusercontent.com/DefectDojo/django-DefectDojo/helm-charts'
19+
"helm-charts" has been added to your repositories
20+
21+
$ helm repo update
22+
```
23+
24+
You should now be able to see the chart.
25+
26+
```
27+
$ helm search repo defectdojo
28+
NAME CHART VERSION APP VERSION DESCRIPTION
29+
helm-charts/defectdojo 1.5.1 1.14.0-dev A Helm chart for Kubernetes to install DefectDojo
30+
```
31+
1232
## Kubernetes Local Quickstart
1333

1434
Requirements:

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[DefectDojo](https://www.defectdojo.org/) is a security program and
1010
vulnerability management tool.
1111
DefectDojo allows you to manage your application security program, maintain
12-
product and application information, schedule scans, triage vulnerabilities and
12+
product and application information, triage vulnerabilities and
1313
push findings into defect trackers.
1414
Consolidate your findings into one source of truth with DefectDojo.
1515

@@ -41,7 +41,10 @@ For detailed documentation you can visit
4141
## Supported Installation Options
4242

4343
* [Docker / Docker Compose](DOCKER.md)
44-
* [Setup.bash](https://github.com/DefectDojo/django-DefectDojo/blob/master/setup/README.md)(End of Life 31/12/2020)
44+
* [godojo](https://github.com/DefectDojo/godojo)
45+
46+
** Now EOL'ed **
47+
* [Setup.bash](https://github.com/DefectDojo/django-DefectDojo/blob/master/setup/README.md)
4548

4649
## Getting Started
4750

@@ -73,8 +76,8 @@ See [Release and branch model](BRANCHING-MODEL.md)
7376

7477
## Roadmap
7578
A magical, illusionary, non-existent, YMMV, wannabe, no guarantees list of thing we may or may not be working on:
76-
- New permission model
77-
- Push groups of findings to a single JIRA ticket
79+
- New permission model (underway)
80+
- Push groups of findings to a single JIRA ticket (experimental now in!)
7881
- Reimport matching improvements
7982

8083

@@ -84,6 +87,7 @@ To manage expectations, we call this the wishlist. These are items we want to do
8487
- New dashboarding / statistics
8588
- New search engine
8689
- Adopt a plugin framework to allow plugins for issue trackers, parsers, reports, etc
90+
- More flexible model
8791

8892

8993
## Support, Bug Reports and Getting Involved

0 commit comments

Comments
 (0)