From 2ffab6f64a2f8828a8fadf36df041718ba206c6b Mon Sep 17 00:00:00 2001 From: Thomas Lam Date: Thu, 28 Aug 2025 14:15:00 -0700 Subject: [PATCH 1/2] feat(ci): add Checkov security scanning workflow --- .github/workflows/security-checkov.yaml | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/security-checkov.yaml diff --git a/.github/workflows/security-checkov.yaml b/.github/workflows/security-checkov.yaml new file mode 100644 index 00000000..a44c0599 --- /dev/null +++ b/.github/workflows/security-checkov.yaml @@ -0,0 +1,37 @@ +# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 +# +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Checkov Security Scan + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + checkov: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Run Checkov + uses: bridgecrewio/checkov-action@master + with: + directory: . + framework: dockerfile,kubernetes,helm + skip_path: k8s-tests/ + output_format: cli From 780ab52c05bfdd6ccfc1cfadfa3156733e08b329 Mon Sep 17 00:00:00 2001 From: Thomas Lam Date: Thu, 28 Aug 2025 14:28:10 -0700 Subject: [PATCH 2/2] fix(ci) checkov only in chart dir --- .github/workflows/security-checkov.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/security-checkov.yaml b/.github/workflows/security-checkov.yaml index a44c0599..edf7f65b 100644 --- a/.github/workflows/security-checkov.yaml +++ b/.github/workflows/security-checkov.yaml @@ -19,8 +19,12 @@ name: Checkov Security Scan on: pull_request: branches: [main] + paths: + - 'chart/**' push: branches: [main] + paths: + - 'chart/**' jobs: checkov: @@ -31,7 +35,6 @@ jobs: - name: Run Checkov uses: bridgecrewio/checkov-action@master with: - directory: . - framework: dockerfile,kubernetes,helm - skip_path: k8s-tests/ + directory: chart + framework: helm output_format: cli