diff --git a/.github/workflows/secrets-scan.yml b/.github/workflows/secrets-scan.yml index bd407d5c..e84d6579 100644 --- a/.github/workflows/secrets-scan.yml +++ b/.github/workflows/secrets-scan.yml @@ -19,7 +19,7 @@ jobs: echo "::set-output name=found-count::$(wc -l /home/runner/reports/whispers.json | cut -d' ' -f1)" - name: Fail if found if: steps.scan.outputs.found-count != 0 - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | echo {{steps.scan.outputs.found-count}} && \ diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index ad03b2d9..451d23c6 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -35,7 +35,7 @@ jobs: echo "::set-output name=found-count::$(cat /home/runner/reports/semgrep.out | jq '.results | length')" - name: Fail if found if: steps.d_scan.outputs.found-count != 0 - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const fs = require('fs') @@ -84,7 +84,7 @@ jobs: echo "::set-output name=python-found-count::$(cat /home/runner/reports/semgrep.out | jq '.results | length')" - name: Fail if found if: steps.py_scan.outputs.python-found-count > 0 - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: |