Skip to content

Commit

Permalink
Merge branch 'dev' into master-into-dev/2.26.4-2.27.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch authored Sep 25, 2023
2 parents f471012 + 117f0eb commit 25d8a3b
Show file tree
Hide file tree
Showing 45 changed files with 776 additions and 113 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-images-for-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
run: echo "IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
driver-opts: image=moby/buildkit:master # needed to get the fix for https://github.com/moby/buildkit/issues/2426

- name: Build
id: docker_build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k8s-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Minikube
uses: manusa/actions-setup-minikube@v2.7.2
uses: manusa/actions-setup-minikube@v2.9.0
with:
minikube version: 'v1.24.0'
kubernetes version: ${{ matrix.k8s }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-x-manual-docker-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
platform: [amd64]
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -47,7 +47,7 @@ jobs:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v3
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Build and push images with debian
if: ${{ matrix.os == 'debian' }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
env:
REPO_ORG: ${{ env.repoorg }}
docker-image: ${{ matrix.docker-image }}
Expand All @@ -77,7 +77,7 @@ jobs:

- name: Build and push images with alpine
if: ${{ matrix.os == 'alpine' }}
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
env:
REPO_ORG: ${{ env.repoorg }}
docker-image: ${{ matrix.docker-image }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.integration-tests-debian
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# code: language=Dockerfile

FROM openapitools/openapi-generator-cli:v7.0.0@sha256:469376dae86c38cb4152b9b820a93d2e74d27a442ea99014f8c7f4a6f2848b9f as openapitools
FROM openapitools/openapi-generator-cli:v7.0.1@sha256:26e3add1a66473bdac63cd3eeec9363d776c343eb50e5e66e97b9ad0d34beaf4 as openapitools
FROM python:3.11.4-slim-bullseye@sha256:40319d0a897896e746edf877783ef39685d44e90e1e6de8d964d0382df0d4952 as build
WORKDIR /app
RUN \
Expand Down
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ services:
volumes:
- defectdojo_data:/var/lib/mysql
postgres:
image: postgres:15.4-alpine@sha256:8bc3c893342c766481df5fde58fab6f1a1115b94eb56778126163305243e9709
profiles:
image: postgres:16.0-alpine@sha256:4632571d35c43c53141ad14e66390ceaa4e6e5d6659aa2d122aab77d591915cd
profiles:
- postgres-rabbitmq
- postgres-redis
environment:
Expand All @@ -149,15 +149,15 @@ services:
volumes:
- defectdojo_postgres:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3.12.4-alpine@sha256:1db3f856e6628e2ac512a91959437ca5bab5112c856fe730b6b5ff5087e5e3d0
profiles:
image: rabbitmq:3.12.5-alpine@sha256:97dd24c8c951c3075891048230e22d92cb9a5efd888e4941310d0190f6d62790
profiles:
- mysql-rabbitmq
- postgres-rabbitmq
volumes:
- defectdojo_rabbitmq:/var/lib/rabbitmq
redis:
image: redis:7.2.0-alpine@sha256:fd5de2340bc46cbc2241975ab027797c350dec6fd86349e3ac384e3a41be6fee
profiles:
image: redis:7.2.1-alpine@sha256:ef3296cb1b3a7eb40f2a992a398777a1c0b5b21df44f1a5bef84067f772daf54
profiles:
- mysql-redis
- postgres-redis
volumes:
Expand Down
5 changes: 5 additions & 0 deletions docs/content/en/integrations/parsers/file/kubehunter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "kubeHunter Scanner"
toc_hide: true
---
Import JSON reports of kube-hunter scans. Use "kube-hunter --report json" to produce the report in json format.
62 changes: 31 additions & 31 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"devDependencies": {
"postcss": "8.4.29",
"autoprefixer": "10.4.15",
"postcss": "8.4.30",
"autoprefixer": "10.4.16",
"postcss-cli": "10.1.0"
}
}
1 change: 1 addition & 0 deletions dojo/api_v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3978,6 +3978,7 @@ class SLAConfigurationViewset(
mixins.DestroyModelMixin,
mixins.CreateModelMixin,
viewsets.GenericViewSet,
dojo_mixins.DeletePreviewModelMixin,
):
serializer_class = serializers.SLAConfigurationSerializer
queryset = SLA_Configuration.objects.all()
Expand Down
17 changes: 16 additions & 1 deletion dojo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
from dojo.models import Dojo_User, Finding_Group, Product_API_Scan_Configuration, Product_Type, Finding, Product, Test_Import, Test_Type, \
Endpoint, Development_Environment, Finding_Template, Note_Type, Risk_Acceptance, Cred_Mapping, \
Engagement_Survey, Question, TextQuestion, ChoiceQuestion, Endpoint_Status, Engagement, \
ENGAGEMENT_STATUS_CHOICES, Test, App_Analysis, SEVERITY_CHOICES, EFFORT_FOR_FIXING_CHOICES, Dojo_Group, Vulnerability_Id
ENGAGEMENT_STATUS_CHOICES, Test, App_Analysis, SEVERITY_CHOICES, EFFORT_FOR_FIXING_CHOICES, Dojo_Group, Vulnerability_Id, \
Test_Import_Finding_Action, IMPORT_ACTIONS
from dojo.utils import get_system_setting
from django.contrib.contenttypes.models import ContentType
import tagulous
Expand Down Expand Up @@ -2238,6 +2239,20 @@ class Meta:
fields = []


class TestImportFindingActionFilter(DojoFilter):
action = MultipleChoiceFilter(choices=IMPORT_ACTIONS)
o = OrderingFilter(
# tuple-mapping retains order
fields=(
('action', 'action'),
)
)

class Meta:
model = Test_Import_Finding_Action
fields = []


class LogEntryFilter(DojoFilter):
from auditlog.models import LogEntry

Expand Down
Loading

0 comments on commit 25d8a3b

Please sign in to comment.