From 0c327c76a44c5df7fb15960faad7717c44c200a2 Mon Sep 17 00:00:00 2001 From: Fayas Date: Tue, 23 Sep 2025 11:58:07 +0400 Subject: [PATCH] chore: remove legacy gitleaks workflow --- .../bulwark-gitleaks-pr-validation.yaml | 40 ------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/bulwark-gitleaks-pr-validation.yaml diff --git a/.github/workflows/bulwark-gitleaks-pr-validation.yaml b/.github/workflows/bulwark-gitleaks-pr-validation.yaml deleted file mode 100644 index 45f9ce7de..000000000 --- a/.github/workflows/bulwark-gitleaks-pr-validation.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: BulwarkGitLeaks -on: [pull_request] - -concurrency: - group: gitleaks-${{ github.ref }} - cancel-in-progress: true - -jobs: - gitleaks-scan: - runs-on: ubuntu-latest - container: - image: gcr.io/spectro-dev-public/bulwark/gitleaks:latest - env: - REPO: ${{ github.event.repository.name }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITLEAKS_CONFIG: config.toml - steps: - - - name: run-bulwark-gitleaks-scan - shell: sh - env: - BRANCH: ${{ github.head_ref || github.ref_name }} - run: /workspace/bulwark -name CodeSASTGitLeaks -target $REPO -tags "branch:$BRANCH,options:--log-opts origin..HEAD" - - - name: check-result - shell: sh - run: | - resultPath=./$REPO/gitleaks.json - if ! [ -f $resultPath ]; then - echo "GitLeaks validation check skipped" - exit 0 - fi - cat $resultPath | grep -v \"Match\"\: | grep -v \"Secret\"\: - total_failed_tests=`cat $resultPath | grep \"Fingerprint\"\: | wc -l` - if [ "$total_failed_tests" -gt 0 ]; then - echo "GitLeaks validation check failed with above findings..." - exit 1 - else - echo "GitLeaks validation check passed" - fi \ No newline at end of file