mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 21:50:59 -05:00
fix: add missing checkov configuration file (#5090)
Add a default (empty) configuration file for Checkov and a smoke test to ensure that we catch the case where a default configuration file is not present, and it should be.
This commit is contained in:
parent
19e39e211e
commit
901a901655
3 changed files with 21 additions and 1 deletions
17
Makefile
17
Makefile
|
@ -4,7 +4,7 @@
|
||||||
all: info docker test ## Run all targets.
|
all: info docker test ## Run all targets.
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: info validate-container-image-labels test-lib inspec lint-codebase test-find test-linters ## Run the test suite
|
test: info validate-container-image-labels test-lib inspec lint-codebase test-default-config-files test-find test-linters ## Run the test suite
|
||||||
|
|
||||||
# if this session isn't interactive, then we don't want to allocate a
|
# if this session isn't interactive, then we don't want to allocate a
|
||||||
# TTY, which would fail, but if it is interactive, we do want to attach
|
# TTY, which would fail, but if it is interactive, we do want to attach
|
||||||
|
@ -164,6 +164,21 @@ test-build-file-list: ## Test buildFileList
|
||||||
--entrypoint /tmp/lint/test/lib/buildFileListTest.sh \
|
--entrypoint /tmp/lint/test/lib/buildFileListTest.sh \
|
||||||
$(SUPER_LINTER_TEST_CONTAINER_URL)
|
$(SUPER_LINTER_TEST_CONTAINER_URL)
|
||||||
|
|
||||||
|
# Run this test against a small directory because we're only interested in
|
||||||
|
# loading default configuration files. The directory that we run super-linter
|
||||||
|
# against should not be .github because that includes default linter rules.
|
||||||
|
.phony: test-default-config-files
|
||||||
|
test-default-config-files: ## Test default configuration files loading
|
||||||
|
docker run \
|
||||||
|
-e RUN_LOCAL=true \
|
||||||
|
-e ACTIONS_RUNNER_DEBUG=true \
|
||||||
|
-e ERROR_ON_MISSING_EXEC_BIT=true \
|
||||||
|
-e ENABLE_GITHUB_ACTIONS_GROUP_TITLE=true \
|
||||||
|
-e DEFAULT_BRANCH=main \
|
||||||
|
-e USE_FIND_ALGORITHM=true \
|
||||||
|
-v "$(CURDIR)/docs":/tmp/lint \
|
||||||
|
$(SUPER_LINTER_TEST_CONTAINER_URL)
|
||||||
|
|
||||||
.phony: test-linters
|
.phony: test-linters
|
||||||
test-linters: ## Run the linters test suite
|
test-linters: ## Run the linters test suite
|
||||||
docker run \
|
docker run \
|
||||||
|
|
4
TEMPLATES/.checkov.yaml
Normal file
4
TEMPLATES/.checkov.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
# Don't report passed checks in output
|
||||||
|
quiet: true
|
||||||
|
...
|
|
@ -450,6 +450,7 @@ control "super-linter-validate-files" do
|
||||||
"/action/lib/.automation/.ansible-lint.yml",
|
"/action/lib/.automation/.ansible-lint.yml",
|
||||||
"/action/lib/.automation/.arm-ttk.psd1",
|
"/action/lib/.automation/.arm-ttk.psd1",
|
||||||
"/action/lib/.automation/.cfnlintrc.yml",
|
"/action/lib/.automation/.cfnlintrc.yml",
|
||||||
|
"/action/lib/.automation/.checkov.yaml",
|
||||||
"/action/lib/.automation/.chktexrc",
|
"/action/lib/.automation/.chktexrc",
|
||||||
"/action/lib/.automation/.clj-kondo",
|
"/action/lib/.automation/.clj-kondo",
|
||||||
"/action/lib/.automation/.coffee-lint.json",
|
"/action/lib/.automation/.coffee-lint.json",
|
||||||
|
|
Loading…
Reference in a new issue