Skip to content

Commit

Permalink
chore: adds fixes for KICS warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Nov 7, 2023
1 parent e93a4e1 commit 8788f9b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ ENABLE_LINTERS:

DISABLE_ERRORS_LINTERS:
- MAKEFILE_CHECKMAKE
- REPOSITORY_KICS
- BASH_SHELLCHECK
- BASH_SHELLCHECK

REPOSITORY_KICS_ARGUMENTS: "--fail-on high"
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Use the UBI 8 minimal base image
# kics-scan disable=fd54f200-402c-4333-a5a4-36ef6709af2f
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest as python-base

ENV PYTHONUNBUFFERED=1 \
Expand Down
4 changes: 3 additions & 1 deletion tests/e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
FROM docker.io/wiremock/wiremock:3.2.0-2

COPY mappings/ /home/wiremock/mappings/
COPY mappings/ /home/wiremock/mappings/

USER 1001
8 changes: 8 additions & 0 deletions tests/e2e/play-kube.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: Pod
metadata:
Expand All @@ -8,5 +9,12 @@ spec:
containers:
- name: mock-server-container
image: localhost/mock-server:latest
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
ports:
- containerPort: 8080

0 comments on commit 8788f9b

Please sign in to comment.