Merge pull request #235 from actions/ncalteen/checkov

Add custom checkov config
This commit is contained in:
Nick Alteen
2025-10-31 10:31:23 -04:00
committed by GitHub
4 changed files with 11 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
quiet: true
skip-check:
- CKV_GHA_7

9
.checkov.yml Normal file
View File

@@ -0,0 +1,9 @@
# See: https://www.checkov.io/1.Welcome/Quick%20Start.html
compact: true
quiet: true
skip-path:
- coverage
- node_modules
skip-check:
- CKV_GHA_7

View File

@@ -6,7 +6,7 @@ on:
who-to-greet: who-to-greet:
description: Who to greet in the log description: Who to greet in the log
required: true required: true
default: 'World' default: World
type: string type: string
permissions: permissions:

View File

@@ -24,14 +24,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
# Checkout the repository.
- name: Checkout - name: Checkout
id: checkout id: checkout
uses: actions/checkout@v5 uses: actions/checkout@v5
with: with:
fetch-depth: 0 fetch-depth: 0
# Setup Node.js using the version specified in `.node-version`.
- name: Setup Node.js - name: Setup Node.js
id: setup-node id: setup-node
uses: actions/setup-node@v5 uses: actions/setup-node@v5
@@ -39,16 +37,15 @@ jobs:
node-version-file: .node-version node-version-file: .node-version
cache: npm cache: npm
# Install dependencies using `npm ci`.
- name: Install Dependencies - name: Install Dependencies
id: install id: install
run: npm ci run: npm ci
# Lint the codebase using the `super-linter/super-linter` action.
- name: Lint Codebase - name: Lint Codebase
id: super-linter id: super-linter
uses: super-linter/super-linter/slim@v8 uses: super-linter/super-linter/slim@v8
env: env:
CHECKOV_FILE_NAME: .checkov.yml
DEFAULT_BRANCH: main DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: dist/**/* FILTER_REGEX_EXCLUDE: dist/**/*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}