Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
b976db2
Update versions in application files
Oct 6, 2025
3352897
Merge pull request #13355 from DefectDojo/master-into-dev/2.51.0-2.52…
rossops Oct 6, 2025
bb25404
:arrow_up: Bump django-pghistory from 3.7.0 to 3.8.3 (#13347)
dependabot[bot] Oct 7, 2025
405ac92
Update redis:7.2.11-alpine Docker digest from 7.2.11 to v (docker-com…
renovate[bot] Oct 7, 2025
1954c8c
:arrow_up: Bump vulners from 2.3.7 to 3.1.1 (#13342)
dependabot[bot] Oct 7, 2025
18cd4b6
:arrow_up: Bump social-auth-app-django from 5.4.3 to 5.5.1 (#13344)
dependabot[bot] Oct 7, 2025
1c49703
:arrow_up: Bump jira from 3.8.0 to 3.10.5 (#13345)
dependabot[bot] Oct 7, 2025
b662f13
chore(deps): update actions/stale action from v9.1.0 to v10 (.github/…
renovate[bot] Oct 7, 2025
ea8b74d
chore(deps): update softprops/action-gh-release action from v2.3.4 to…
renovate[bot] Oct 7, 2025
6a826fa
Bump boto3 from 1.40.44 to 1.40.46 (#13361)
dependabot[bot] Oct 7, 2025
2da05de
fix(helm): Fix checker of HELM chart change (#13310)
kiblik Oct 7, 2025
4f38f2f
fix: add missing resources, securityContext and env entries (#13210)
fernandezcuesta Oct 7, 2025
c05fff3
Bump social-auth-core from 4.7.0 to 4.8.0 (#13360)
dependabot[bot] Oct 7, 2025
eb3c83a
:arrow_up: Bump ruff from 0.13.2 to 0.14.0 (#13337)
manuel-sommer Oct 8, 2025
602e905
feat(docker): Use Python 3.13 in docker images (#13022)
kiblik Oct 8, 2025
0399b58
apiv2: fix schema for engagements endpoint (#13336)
valentijnscholten Oct 8, 2025
fcfee2f
importers: defend against parsers returning None (#13335)
valentijnscholten Oct 8, 2025
fbbc7a0
fix upload error when finding groups disabled (#13334)
valentijnscholten Oct 8, 2025
c8c4750
engagement: allow unlinking of JIRA epic (#13333)
valentijnscholten Oct 8, 2025
e3f9734
user mentioning: diplay author instead of recipient (#13332)
valentijnscholten Oct 8, 2025
5ba26b9
Bump datatables.net-colreorder from 2.1.1 to 2.1.2 in /components (#1…
dependabot[bot] Oct 10, 2025
d90b09f
Bump boto3 from 1.40.46 to 1.40.49 (#13395)
dependabot[bot] Oct 10, 2025
b45c946
Bump social-auth-core from 4.8.0 to 4.8.1 (#13389)
dependabot[bot] Oct 10, 2025
3f94b41
chore(deps): update redis:7.2.11-alpine docker digest from 7.2.11 to …
renovate[bot] Oct 10, 2025
5687ab9
chore(deps): update postgres:18.0-alpine docker digest from 18.0 to 1…
renovate[bot] Oct 10, 2025
1419211
fix(deps): update dependency @docsearch/js from 4.1.0 to v4.2.0 (docs…
renovate[bot] Oct 10, 2025
e6cb0ab
feat(helm): Simplify k8s-tests.yml (#13379)
kiblik Oct 10, 2025
3a91a81
chore(deps): update dependency python from 3.13.8 to 3.14 (.github/wo…
renovate[bot] Oct 10, 2025
66054b3
Bump social-auth-app-django from 5.5.1 to 5.6.0 (#13388)
dependabot[bot] Oct 10, 2025
f61e3aa
feat(helm): DRY cloudsql-proxy (#13369)
kiblik Oct 11, 2025
5f306e0
Test
kiblik Oct 11, 2025
0372b07
Update versions in application files
Oct 14, 2025
244eb01
Merge branch 'dev' into master-into-dev/2.51.1-2.52.0-dev
rossops Oct 14, 2025
c11d13f
Seeing if these updated versions work with py 3.14
rossops Oct 14, 2025
76f06f6
Various doc/schema fixes
rossops Oct 14, 2025
b3f48ed
More fixes
rossops Oct 14, 2025
e650c0f
Debug statement and space fix
rossops Oct 14, 2025
4d2fe44
Merge pull request #13422 from DefectDojo/master-into-dev/2.51.1-2.52…
rossops Oct 14, 2025
1d7ee8d
fix(helm): Test oldest supported k8s version (#13376)
kiblik Oct 15, 2025
97f1069
chore(deps): update redis:7.2.11-alpine docker digest from 7.2.11 to …
renovate[bot] Oct 15, 2025
0d1ed65
chore(deps): update softprops/action-gh-release action from v2.4.0 to…
renovate[bot] Oct 15, 2025
cc0d519
chore(deps): update mikefarah/yq action from v4.47.2 to v4.48.1 (.git…
renovate[bot] Oct 15, 2025
2ccaebc
chore(deps): update stefanzweifel/git-auto-commit-action action from …
renovate[bot] Oct 15, 2025
5d766e2
Bump uwsgi from 2.0.30 to 2.0.31 (#13410)
dependabot[bot] Oct 15, 2025
741fad0
Bump sqlalchemy from 2.0.43 to 2.0.44 (#13411)
dependabot[bot] Oct 15, 2025
1cb0fe3
chore(deps): update losisin/helm-values-schema-json-action action fro…
renovate[bot] Oct 15, 2025
67dd77c
Bump nginx from 1.29.1-alpine3.22 to 1.29.2-alpine3.22 (#13413)
dependabot[bot] Oct 15, 2025
07ce2aa
chore(deps): update actions/setup-node action from v5.0.0 to v6 (.git…
renovate[bot] Oct 15, 2025
baeb1de
Bump boto3 from 1.40.49 to 1.40.52 (#13426)
dependabot[bot] Oct 15, 2025
90214e2
Bump django-imagekit from 5.0.0 to 6.0.0 (#13414)
dependabot[bot] Oct 15, 2025
843188e
:hammer: Merge the MobSF scanner (#12501)
manuel-sommer Oct 16, 2025
a60dee0
Merge pull request #13401 from kiblik/broken_yaml
rossops Oct 16, 2025
6b17b5e
feat(helm): Split image locations+tags, allow digest pinning (#13370)
kiblik Oct 16, 2025
a1a4975
Bump cryptography from 46.0.2 to 46.0.3 (#13431)
dependabot[bot] Oct 17, 2025
109c15e
Bump boto3 from 1.40.52 to 1.40.53 (#13432)
dependabot[bot] Oct 17, 2025
a99c9bc
Bump humanize from 4.13.0 to 4.14.0 (#13433)
dependabot[bot] Oct 17, 2025
bc177bd
Downgrade django-tagulous to 2.1.0 (#13441)
valentijnscholten Oct 17, 2025
36e059e
Bump pillow from 11.3.0 to 12.0.0 (#13434)
dependabot[bot] Oct 17, 2025
13dd919
feat(session): Single user session (#13416)
kiblik Oct 17, 2025
4e1b4c6
Ruff: Fix PLC2701 + merge PLC (#13436)
kiblik Oct 17, 2025
e27d99d
ruff: Merge B01 rules (#13430)
kiblik Oct 17, 2025
dec5a63
Added the definition of the SOCIAL_AUTH_LOGIN_REDIRECT_URL variable (…
rseleven Oct 17, 2025
489936f
auto_create_context: make engagement creation atomic (#13444)
valentijnscholten Oct 17, 2025
685ce4a
Bump ruff from 0.14.0 to 0.14.1 (#13452)
dependabot[bot] Oct 17, 2025
922757b
Bump boto3 from 1.40.53 to 1.40.54 (#13450)
dependabot[bot] Oct 17, 2025
47ac933
feat(helm): Add descriptions (#13407)
kiblik Oct 17, 2025
dbe8da0
Bump python-gitlab from 6.4.0 to 6.5.0 (#13470)
dependabot[bot] Oct 20, 2025
0b7e96d
Bump boto3 from 1.40.54 to 1.40.55 (#13472)
dependabot[bot] Oct 20, 2025
b2eda48
Ruff: Fix N805 (#13437)
kiblik Oct 20, 2025
0dda8ab
ruff: PT - simplify rules (#13435)
kiblik Oct 20, 2025
70bba0c
Update versions in application files
Oct 20, 2025
a1aa663
Merge branch 'dev' into master-into-dev/2.51.2-2.52.0-dev
Maffooch Oct 20, 2025
c7a3600
Merge pull request #13477 from DefectDojo/master-into-dev/2.51.2-2.52…
rossops Oct 20, 2025
0d7f0e0
feat(helm): Improve description about images/tags (#13473)
kiblik Oct 21, 2025
2591fd3
Split Github Vulnerability Scan into separate SCA & SAST parsers (#12…
Logicmn Oct 22, 2025
a3e6779
fix(deps): update dependency @docsearch/css from 4.1.0 to v4.2.0 (doc…
renovate[bot] Oct 23, 2025
6fd39a3
Bump psycopg[c] from 3.2.10 to 3.2.11 (#13471)
dependabot[bot] Oct 23, 2025
70145d6
chore(deps): update dependency renovatebot/renovate from 41.146.0 to …
renovate[bot] Oct 23, 2025
fd5b2fb
jira_integration: changes risk acceptance expiration date to a better…
maxi-bee Oct 23, 2025
84e2f6f
UNIQUE_ID_OR_HASH_CODE: dont stop after one candidate (#13513)
valentijnscholten Oct 24, 2025
b6f22d0
chore(deps): update node.js from v22.20.0 to v22.21.0 (docs/package.j…
renovate[bot] Oct 24, 2025
d690be9
chore(deps): update dependency renovatebot/renovate from 41.146.8 to …
renovate[bot] Oct 25, 2025
9fc2204
Bump ruff from 0.14.1 to 0.14.2 (#13525)
dependabot[bot] Oct 26, 2025
b770c15
Bump boto3 from 1.40.55 to 1.40.58 (#13524)
dependabot[bot] Oct 26, 2025
ab8982a
chore(deps): update postgres:18.0-alpine docker digest from 18.0 to 1…
renovate[bot] Oct 26, 2025
7dd285c
chore(deps): update dependency vite from 7.1.9 to v7.1.11 [security] …
renovate[bot] Oct 26, 2025
ff49260
Bump redis from 6.4.0 to 7.0.0 (#13510)
dependabot[bot] Oct 26, 2025
6864672
chore(deps): update github artifact actions (.github/workflows/rest-f…
renovate[bot] Oct 27, 2025
0fd62d6
chore(deps): update dependency vite from 7.1.11 to v7.1.12 (docs/pack…
renovate[bot] Oct 27, 2025
d8675fe
fix: ui must not overwrite service field from parser (#13517)
valentijnscholten Oct 27, 2025
e55c8b6
Update versions in application files
Oct 27, 2025
ccd45f7
Update versions in application files
Oct 27, 2025
b5a46f4
watson: lower async threshold from 100 to 10 (#13518)
valentijnscholten Oct 27, 2025
ea09b35
feat(helm): Do not allow multiple celery beats (#13527)
kiblik Oct 27, 2025
ffe7435
feat(GHA): Replace ShellCheck (#13519)
kiblik Oct 27, 2025
9c5bd56
scan_added_empty.tpl: fix symlink problem (#13514)
valentijnscholten Oct 27, 2025
3881936
fix(HELM): Add "artifacthub.io/changes" for renovate & dependabot (#1…
kiblik Oct 27, 2025
12e1eb3
Merge branch 'dev' into master-into-dev/2.51.3-2.52.0-dev
Maffooch Oct 27, 2025
236d8b1
endpoint import optimize (#13521)
valentijnscholten Oct 27, 2025
1edaa95
Merge pull request #13540 from DefectDojo/master-into-bugfix/2.51.3-2…
rossops Oct 27, 2025
35934f7
Merge pull request #13539 from DefectDojo/master-into-dev/2.51.3-2.52…
rossops Oct 27, 2025
04a28aa
chore(deps): update dependency renovatebot/renovate from 41.159.4 to …
renovate[bot] Oct 28, 2025
1676517
Bump psycopg[c] from 3.2.11 to 3.2.12 (#13535)
dependabot[bot] Oct 28, 2025
5164ce9
chore(deps): update dependency node from 22.21.0 to v24 (.github/work…
renovate[bot] Oct 28, 2025
d588609
chore(deps): bump redis from 7.0.0 to 7.0.1 (#13552)
dependabot[bot] Oct 28, 2025
bd84361
chore(deps): bump bleach from 6.2.0 to 6.3.0 (#13553)
dependabot[bot] Oct 28, 2025
6afbcbf
chore(deps): bump boto3 from 1.40.58 to 1.40.60 (#13554)
dependabot[bot] Oct 28, 2025
98e7e1e
chore(deps): update dependency renovatebot/renovate from 41.163.1 to …
renovate[bot] Oct 28, 2025
62ba5e5
Added Ability to Edit found_by value in API (#13542)
Jino-T Oct 29, 2025
34a937b
chore(deps): update dependency renovatebot/renovate from 41.163.6 to …
renovate[bot] Oct 30, 2025
788572f
chore(deps): update dependency node from 24.10.0 to v24.11.0 (.github…
renovate[bot] Oct 30, 2025
16c749c
:bug: add middleware to handle social auth provider unavailability gr…
manuel-sommer Oct 30, 2025
e15bddd
chore(deps): update dependency renovatebot/renovate from 41.163.7 to …
renovate[bot] Oct 30, 2025
1bac207
docs: correct LDAP authentication instructions for Alpine-based Docke…
yuwwx Oct 30, 2025
155a404
chore(deps): bump boto3 from 1.40.60 to 1.40.62 (#13569)
dependabot[bot] Oct 30, 2025
bda17de
chore(deps): bump python-gitlab from 6.5.0 to 7.0.0 (#13570)
dependabot[bot] Oct 30, 2025
8e2e6cd
[docs] Integrators/Connectors updates (#13549)
paulOsinski Oct 30, 2025
09f7ffb
fix(FindingViewSet): remove prefetched tags to prevent issues with ce…
Maffooch Oct 30, 2025
26fe7a9
Added handling for abnormal wazuh severity values (#13522)
Jino-T Oct 30, 2025
1df2832
Added more details to the run-unittest.sh help text (#13557)
Jino-T Oct 30, 2025
00d3fae
fix(dependencies): update package versions to remove caret (^) for co…
Maffooch Oct 30, 2025
7436cf7
chore(deps): update dependency renovatebot/renovate from 41.165.5 to …
renovate[bot] Oct 31, 2025
39e3b9c
chore(deps): update dependency django-debug-toolbar from 6.0.0 to v6.…
renovate[bot] Oct 31, 2025
554b531
chore(deps): update dependency renovatebot/renovate from 41.165.7 to …
renovate[bot] Oct 31, 2025
4fda41e
docker compose: switch to Valkey as message broker (#13331)
valentijnscholten Oct 31, 2025
1ba1122
Fix recipient handling in create_notification method (#13548)
dorkdiaries9 Oct 31, 2025
a8869de
chore(deps): bump ruff from 0.14.2 to 0.14.3 (#13577)
dependabot[bot] Oct 31, 2025
e1eef7c
chore(deps): bump boto3 from 1.40.62 to 1.40.63 (#13579)
dependabot[bot] Oct 31, 2025
a260967
:tada: Add mal vulnid (#13588)
manuel-sommer Nov 3, 2025
ca0fc56
:bug: fix similiar findings severity color (#13586)
manuel-sommer Nov 3, 2025
1f90ab7
fix(CycloneDXJSONParser): handle missing severity field by defaulting…
Maffooch Nov 3, 2025
d1e0dca
[docs] Prioritization Engine adjustments (#13581)
paulOsinski Nov 3, 2025
9fb0dae
:bug: Robustify create_user to handle None value (#13572)
manuel-sommer Nov 3, 2025
1271649
Merge branch 'dev' into bugfix
Maffooch Nov 3, 2025
88361c9
Changing to supported k8s version for minikube
rossops Nov 3, 2025
40dca35
Merge pull request #13601 from DefectDojo/bugfix
rossops Nov 3, 2025
4b6ddca
Update versions in application files
Nov 3, 2025
8f98d4e
Merge branch 'master' into release/2.52.0
rossops Nov 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This checklist is for your information.
- [ ] Bugfixes should be submitted against the `bugfix` branch.
- [ ] Give a meaningful name to your PR, as it may end up being used in the release notes.
- [ ] Your code is flake8 compliant.
- [ ] Your code is python 3.12 compliant.
- [ ] Your code is python 3.13 compliant.
- [ ] If this is a new feature and not a bug fix, you've included the proper documentation in the docs at https://github.com/DefectDojo/django-DefectDojo/tree/dev/docs as part of this PR.
- [ ] Model changes must include the necessary migrations in the dojo/db_migrations folder.
- [ ] Add applicable tests to the unit tests.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-images-for-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
# export docker images to be used in next jobs below
- name: Upload image ${{ matrix.docker-image }} as artifact
timeout-minutes: 15
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: built-docker-image-${{ matrix.docker-image }}-${{ matrix.os }}-${{ env.PLATFORM }}
path: ${{ matrix.docker-image }}-${{ matrix.os }}-${{ env.PLATFORM }}_img
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Close issues and PRs that are pending closure
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
with:
# Disable automatic stale marking - only close manually labeled items
days-before-stale: -1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fetch-oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: docker compose down

- name: Upload oas.${{ matrix.file-type }} as artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: oas-${{ matrix.file-type }}
path: oas.${{ matrix.file-type }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
extended: true

- name: Setup Node
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '22.20.0'
node-version: '24.11.0' # TODO: Renovate helper might not be needed here - needs to be fully tested

- name: Cache dependencies
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/helm-docs-updates.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:

# load docker images from build jobs
- name: Load images from artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
path: built-docker-image
pattern: built-docker-image-*
Expand All @@ -76,7 +76,7 @@ jobs:
run: ln -s docker-compose.override.integration_tests.yml docker-compose.override.yml

- name: Start Dojo
run: docker compose up --no-deps -d postgres nginx celerybeat celeryworker mailhog uwsgi redis
run: docker compose up --no-deps -d postgres nginx celerybeat celeryworker mailhog uwsgi valkey
env:
DJANGO_VERSION: ${{ matrix.os }}
NGINX_VERSION: alpine
Expand Down
35 changes: 12 additions & 23 deletions .github/workflows/k8s-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ on:

env:
DD_HOSTNAME: defectdojo.default.minikube.local
HELM_REDIS_BROKER_SETTINGS: " \
--set redis.enabled=true \
--set celery.broker=redis \
--set createRedisSecret=true \
"
HELM_PG_DATABASE_SETTINGS: " \
--set postgresql.enabled=true \
--set createPostgresqlSecret=true \
"
jobs:
setting_minikube_cluster:
name: Kubernetes Deployment
Expand All @@ -23,11 +14,11 @@ jobs:
matrix:
include:
# databases, broker and k8s are independent, so we don't need to test each combination
# lastest k8s version (https://kubernetes.io/releases/) and oldest supported version from aws
# are tested (https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#available-versions)
- databases: pgsql
brokers: redis
k8s: 'v1.34.0' # renovate: datasource=github-releases depName=kubernetes/kubernetes
# lastest k8s version (https://kubernetes.io/releases/) and the oldest officially supported version
# are tested (https://kubernetes.io/releases/)
- k8s: 'v1.34.0' # renovate: datasource=github-releases depName=kubernetes/kubernetes versioning=loose
os: debian
- k8s: 'v1.31.13' # Do not track with renovate as we likely want to rev this manually
os: debian
steps:
- name: Checkout
Expand All @@ -47,7 +38,7 @@ jobs:
minikube status

- name: Load images from artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
path: built-docker-image
pattern: built-docker-image-*
Expand All @@ -68,12 +59,6 @@ jobs:
helm dependency list ./helm/defectdojo
helm dependency update ./helm/defectdojo

- name: Set confings into Outputs
id: set
run: |-
echo "pgsql=${{ env.HELM_PG_DATABASE_SETTINGS }}" >> $GITHUB_ENV
echo "redis=${{ env.HELM_REDIS_BROKER_SETTINGS }}" >> $GITHUB_ENV

- name: Deploying Django application with ${{ matrix.databases }} ${{ matrix.brokers }}
timeout-minutes: 15
run: |-
Expand All @@ -84,10 +69,14 @@ jobs:
defectdojo \
./helm/defectdojo \
--set django.ingress.enabled=true \
--set images.django.image.tag=latest \
--set images.nginx.image.tag=latest \
--set imagePullPolicy=Never \
--set initializer.keepSeconds="-1" \
${{ env[matrix.databases] }} \
${{ env[matrix.brokers] }} \
--set redis.enabled=true \
--set createRedisSecret=true \
--set postgresql.enabled=true \
--set createPostgresqlSecret=true \
--set createSecret=true

- name: Check deployment status
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-1-create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
chart-search-root: "helm/defectdojo"

- name: Push version changes
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
with:
commit_user_name: "${{ env.GIT_USERNAME }}"
commit_user_email: "${{ env.GIT_EMAIL }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-3-master-into-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
chart-search-root: "helm/defectdojo"

- name: Push version changes
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
with:
commit_user_name: "${{ env.GIT_USERNAME }}"
commit_user_email: "${{ env.GIT_EMAIL }}"
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
chart-search-root: "helm/defectdojo"

- name: Push version changes
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
with:
commit_user_name: "${{ env.GIT_USERNAME }}"
commit_user_email: "${{ env.GIT_EMAIL }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Load OAS files from artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
pattern: oas-*

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-x-manual-docker-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:

# upload the digest file as artifact
- name: Upload digest
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: digests-${{ matrix.docker-image}}-${{ matrix.os }}-${{ env.PLATFORM }}
path: ${{ runner.temp }}/digests/*
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/release-x-manual-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@ jobs:
helm dependency list ./helm/defectdojo
helm dependency update ./helm/defectdojo

- name: Add yq
uses: mikefarah/yq@6251e95af8df3505def48c71f3119836701495d6 # v4.47.2

- name: Pin version docker version
id: pin_image
run: |-
yq --version
yq -i '.tag="${{ inputs.release_number }}"' helm/defectdojo/values.yaml
echo "Current image tag:`yq -r '.tag' helm/defectdojo/values.yaml`"

- name: Package Helm chart
id: package-helm-chart
run: |
Expand All @@ -87,7 +77,7 @@ jobs:
echo "chart_version=$(ls build | cut -d '-' -f 2,3 | sed 's|\.tgz||')" >> $GITHUB_ENV

- name: Create release ${{ inputs.release_number }}
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
with:
name: '${{ inputs.release_number }} 🌈'
tag_name: ${{ inputs.release_number }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

# only download digests for this image and this os
- name: Download digests
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
path: ${{ runner.temp }}/digests
pattern: digests-${{ matrix.docker-image}}-${{ matrix.os }}-*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
uses: suzuki-shunsuke/github-action-renovate-config-validator@c22827f47f4f4a5364bdba19e1fe36907ef1318e # v1.1.1
with:
strict: "true"
validator_version: 41.146.0 # renovate: datasource=github-releases depName=renovatebot/renovate
validator_version: 41.168.0 # renovate: datasource=github-releases depName=renovatebot/renovate
2 changes: 1 addition & 1 deletion .github/workflows/rest-framework-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

# load docker images from build jobs
- name: Load images from artifacts
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
path: built-docker-image
pattern: built-docker-image-*
Expand Down
121 changes: 7 additions & 114 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,124 +2,17 @@
name: Shellcheck
on:
pull_request:
env:
SHELLCHECK_REPO: 'koalaman/shellcheck'
SHELLCHECK_VERSION: 'v0.9.0' # renovate: datasource=github-releases depName=koalaman/shellcheck
SHELLCHECK_SHA: '038fd81de6b7e20cc651571362683853670cdc71' # Renovate config is not currently adjusted to update hash - it needs to be done manually for now

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Grab shellcheck
run: |
set -e

SHELLCHECK_TARBALL_URL="https://github.com/${SHELLCHECK_REPO}/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz"
SHELLCHECK_TARBALL_LOC="shellcheck.tar.xz"
curl -L "${SHELLCHECK_TARBALL_URL}" -o "${SHELLCHECK_TARBALL_LOC}"
tarball_sha=$(shasum ${SHELLCHECK_TARBALL_LOC} | awk '{print $1}')
if [ "${tarball_sha}" != "${SHELLCHECK_SHA}" ]; then
echo "Got invalid SHA for shellcheck: ${tarball_sha}"
exit 1
fi
tar -xvf "${SHELLCHECK_TARBALL_LOC}"
cd "shellcheck-${SHELLCHECK_VERSION}" || exit 1
mv shellcheck "${GITHUB_WORKSPACE}/shellcheck"

- name: Run shellcheck
shell: bash
run: |
set -o pipefail

# Make sure we already put the proper shellcheck binary in place
if [ ! -f "./shellcheck" ]; then
echo "shellcheck not found"
exit 1
fi

# Make sure we know what to compare the PR's changes against
if [ -z "${GITHUB_BASE_REF}" ]; then
echo "No base reference supplied"
exit 1
fi

num_findings=0

# Execute shellcheck and add errors based on the output
run_shellcheck() {
local modified_shell_script="${1}"
local findings_file="findings.txt"

# Remove leftover findings file from previous iterations
if [ -f "${findings_file}" ]; then
rm "${findings_file}"
fi

echo "Running shellcheck against ${modified_shell_script}..."

# If shellcheck reported no errors (exited with 0 status code), return
if ./shellcheck -f json -S warning "${modified_shell_script}" | jq -c '.[]' > "${findings_file}"; then
return 0
fi

# Walk each of the individual findings
while IFS= read -r finding; do
num_findings=$((num_findings+1))

line=$(echo "${finding}" | jq '.line')
end_line=$(echo "${finding}" | jq '.endLine')
column=$(echo "${finding}" | jq '.column')
end_column=$(echo "${finding}" | jq '.endColumn')
code=$(echo "${finding}" | jq '.code')
title="SC${code}"
message="$(echo "${finding}" | jq -r '.message') See https://github.com/koalaman/shellcheck/wiki/${title}"

echo "Line: ${line}"
echo "End line: ${end_line}"
echo "Column: ${column}"
echo "End column: ${end_column}"
echo "Title: ${title}"
echo "Message: ${message}"

# Raise an error with the file/line/etc
echo "::error file=${modified_shell_script},line=${line},endLine=${end_line},column=${column},endColumn=${end_column},title=${title}::${message}"
done < ${findings_file}
}

# Find the shell scripts that were created or modified by this PR
find_modified_shell_scripts() {
shell_scripts="shell_scripts.txt"
modified_files="modified_files.txt"
modified_shell_scripts="modified_shell_scripts.txt"

find . -name "*.sh" -or -name "*.bash" | sed 's#^\./##' > "${shell_scripts}"
git diff --name-only "origin/${GITHUB_BASE_REF}" HEAD > "${modified_files}"

if [ ! -s "${shell_scripts}" ] || [ ! -s "${modified_files}" ]; then
echo "No modified shell scripts detected"
exit 0
fi

if ! grep -Fxf "${shell_scripts}" "${modified_files}" > "${modified_shell_scripts}"; then
echo "No modified shell scripts detected"
exit 0
fi
}

git fetch origin "${GITHUB_BASE_REF}" || exit 1

find_modified_shell_scripts

# Loop through the modified shell scripts
while IFS= read -r modified_shell_script; do
run_shellcheck "${modified_shell_script}"
done < ${modified_shell_scripts}

# If shellcheck reported any findings, fail the workflow
if [ ${num_findings} -gt 0 ]; then
echo "shellcheck reported ${num_findings} findings."
exit 1
fi
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0
with:
version: 'v0.11.0' # renovate: datasource=github-releases depName=koalaman/shellcheck versioning=loose
env:
SHELLCHECK_OPTS: -e SC1091 -e SC2086 # TODO: fix following findings
Loading