From e867b5046351986f221e995726f40ad361488027 Mon Sep 17 00:00:00 2001 From: Surya Sameer Datta Vaddadi Date: Thu, 26 Mar 2026 02:51:32 +0530 Subject: [PATCH 1/2] Remove trivy - Manifests Signed-off-by: Surya Sameer Datta Vaddadi --- .github/workflows/trivy.yaml | 56 ------------------------------------ 1 file changed, 56 deletions(-) delete mode 100644 .github/workflows/trivy.yaml diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml deleted file mode 100644 index d39287837b..0000000000 --- a/.github/workflows/trivy.yaml +++ /dev/null @@ -1,56 +0,0 @@ -name: Image Extracting and Security Scanning - -on: - push: - branches: - - master - pull_request: - paths: - - tests/kustomize_install.sh - - .github/workflows/trivy.yaml - - tests/trivy_scan.py - - tests/trivy_install.sh - -permissions: - contents: read - actions: read - -jobs: - image-extraction-and-security-scan: - if: ${{ github.repository == 'kubeflow/manifests' }} - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v5 - - # Install kustomize - - name: Install kustomize - run: | - bash tests/kustomize_install.sh - - # Install trivy - - name: Install trivy - run: | - bash tests/trivy_install.sh - - # Install Python - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.12' - - # Install prettytable package - - name: Install prettytable - run: | - pip install prettytable - - - name: Run image extracting and security scanning script - run: | - cd tests - python3 trivy_scan.py - - - name: Upload trivy scanned_results - uses: actions/upload-artifact@v4 - with: - name: trivy_scanned_results - path: image_lists/ From 7a6dd2e4ff591f2603212e551743ea757563f269 Mon Sep 17 00:00:00 2001 From: Surya Sameer Datta Vaddadi Date: Fri, 27 Mar 2026 00:17:07 +0530 Subject: [PATCH 2/2] Restored the trivy workflow and commented instead Signed-off-by: Surya Sameer Datta Vaddadi --- .github/workflows/trivy.yaml | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/trivy.yaml diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml new file mode 100644 index 0000000000..d5b5ad6d62 --- /dev/null +++ b/.github/workflows/trivy.yaml @@ -0,0 +1,57 @@ +name: Image Extracting and Security Scanning + +on: + workflow_dispatch: + # push: + # branches: + # - master + # pull_request: + # paths: + # - tests/kustomize_install.sh + # - .github/workflows/trivy.yaml + # - tests/trivy_scan.py + # - tests/trivy_install.sh + +permissions: + contents: read + actions: read + +jobs: + image-extraction-and-security-scan: + if: ${{ github.repository == 'kubeflow/manifests' }} + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v5 + + # Install kustomize + - name: Install kustomize + run: | + bash tests/kustomize_install.sh + + # Install trivy + - name: Install trivy + run: | + bash tests/trivy_install.sh + + # Install Python + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + # Install prettytable package + - name: Install prettytable + run: | + pip install prettytable + + - name: Run image extracting and security scanning script + run: | + cd tests + python3 trivy_scan.py + + - name: Upload trivy scanned_results + uses: actions/upload-artifact@v4 + with: + name: trivy_scanned_results + path: image_lists/