Skip to content

Commit

Permalink
feat: add checkov github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajfer committed Oct 18, 2023
1 parent fe60ebc commit 01d2db7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/checkov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Checkov
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Test with Checkov
id: checkov
uses: bridgecrewio/checkov-action@master
with:
directory: deployments
framework: helm
4 changes: 2 additions & 2 deletions deployments/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.5.1"
appVersion: "0.9.0"
1 change: 1 addition & 0 deletions deployments/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "surbot.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "surbot.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down
4 changes: 2 additions & 2 deletions deployments/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000

resources: {}
resources:
limits:
cpu: 100m
memory: 128Mi
Expand Down

0 comments on commit 01d2db7

Please sign in to comment.