Skip to content

Commit 5dbafc3

Browse files
authored
Merge pull request #235 from actions/ncalteen/checkov
Add custom checkov config
2 parents 2fb3388 + d8e2f77 commit 5dbafc3

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.checkov.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.checkov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See: https://www.checkov.io/1.Welcome/Quick%20Start.html
2+
3+
compact: true
4+
quiet: true
5+
skip-path:
6+
- coverage
7+
- node_modules
8+
skip-check:
9+
- CKV_GHA_7

.github/workflows/example-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
who-to-greet:
77
description: Who to greet in the log
88
required: true
9-
default: 'World'
9+
default: World
1010
type: string
1111

1212
permissions:

.github/workflows/linter.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,28 @@ jobs:
2424
runs-on: ubuntu-latest
2525

2626
steps:
27-
# Checkout the repository.
2827
- name: Checkout
2928
id: checkout
3029
uses: actions/checkout@v5
3130
with:
3231
fetch-depth: 0
3332

34-
# Setup Node.js using the version specified in `.node-version`.
3533
- name: Setup Node.js
3634
id: setup-node
3735
uses: actions/setup-node@v5
3836
with:
3937
node-version-file: .node-version
4038
cache: npm
4139

42-
# Install dependencies using `npm ci`.
4340
- name: Install Dependencies
4441
id: install
4542
run: npm ci
4643

47-
# Lint the codebase using the `super-linter/super-linter` action.
4844
- name: Lint Codebase
4945
id: super-linter
5046
uses: super-linter/super-linter/slim@v8
5147
env:
48+
CHECKOV_FILE_NAME: .checkov.yml
5249
DEFAULT_BRANCH: main
5350
FILTER_REGEX_EXCLUDE: dist/**/*
5451
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)