From 6d8216ae2eb2e6201bfc1be8bb7dc83beea04563 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 07:03:33 +0000 Subject: [PATCH] Update actions/github-script action to v7 --- .github/workflows/secrets-scan.yml | 2 +- .github/workflows/semgrep.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: |