Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
e286f746
Commit
e286f746
authored
3 years ago
by
Philip Gough
Browse files
Options
Downloads
Patches
Plain Diff
make: Target for security scan
parent
b8a05f41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+6
-1
6 additions, 1 deletion
Makefile
with
6 additions
and
1 deletion
Makefile
+
6
−
1
View file @
e286f746
...
...
@@ -9,7 +9,8 @@ JSONNET_BIN=$(BIN_DIR)/jsonnet
JSONNETLINT_BIN
=
$(
BIN_DIR
)
/jsonnet-lint
JSONNETFMT_BIN
=
$(
BIN_DIR
)
/jsonnetfmt
KUBECONFORM_BIN
=
$(
BIN_DIR
)
/kubeconform
TOOLING
=
$(
JB_BIN
)
$(
GOJSONTOYAML_BIN
)
$(
JSONNET_BIN
)
$(
JSONNETLINT_BIN
)
$(
JSONNETFMT_BIN
)
$(
KUBECONFORM_BIN
)
$(
MDOX_BIN
)
KUBESCAPE_BIN
=
$(
BIN_DIR
)
/kubescape
TOOLING
=
$(
JB_BIN
)
$(
GOJSONTOYAML_BIN
)
$(
JSONNET_BIN
)
$(
JSONNETLINT_BIN
)
$(
JSONNETFMT_BIN
)
$(
KUBECONFORM_BIN
)
$(
MDOX_BIN
)
$(
KUBESCAPE_BIN
)
JSONNETFMT_ARGS
=
-n
2
--max-blank-lines
2
--string-style
s
--comment-style
s
...
...
@@ -63,6 +64,10 @@ validate-1.23:
kubeconform
:
crdschemas manifests $(KUBECONFORM_BIN)
$(
KUBECONFORM_BIN
)
-kubernetes-version
$(
KUBE_VERSION
)
-schema-location
'default'
-schema-location
'crdschemas/{{ .ResourceKind }}.json'
-skip
CustomResourceDefinition manifests/
.PHONY
:
kubescape
kubescape
:
$(KUBESCAPE_BIN)
##
Runs a security analysis on generated manifests - failing if risk score is above 40%
$(
KUBESCAPE_BIN
)
scan
-s
framework
-t
40 nsa manifests/
*
.yaml
.PHONY
:
fmt
fmt
:
$(JSONNETFMT_BIN)
find
.
-name
'vendor'
-prune
-o
-name
'*.libsonnet'
-print
-o
-name
'*.jsonnet'
-print
|
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment