diff --git a/.github/workflows/test-secret-scan.yml b/.github/workflows/test-secret-scan.yml index e234f24..ecae476 100644 --- a/.github/workflows/test-secret-scan.yml +++ b/.github/workflows/test-secret-scan.yml @@ -25,7 +25,7 @@ jobs: fail-on-found: false - name: Fail if not found if: steps.scan.outputs.verified-secrets != 4 - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | core.setFailed('Incorrect number of secrets found.') diff --git a/secret-scan/action.yml b/secret-scan/action.yml index 7828a6b..7aba072 100644 --- a/secret-scan/action.yml +++ b/secret-scan/action.yml @@ -39,14 +39,14 @@ runs: shell: bash - name: Log Outputs if: inputs.log-outputs - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | core.info(`Number of verified secrets: ${{steps.secrets-found.outputs.verified-secrets}}`) core.info(`Number of unverified secrets: ${{steps.secrets-found.outputs.unverified-secrets}}`) - name: Fail if found if: inputs.fail-on-found && steps.scan.outputs.verified-secrets > 0 - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | core.setFailed('Secrets found.')