Skip to content

Commit

Permalink
Update actions/github-script action to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Nov 14, 2023
1 parent 7ac3a01 commit e1f9f48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/secrets-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}} && \
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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')
Expand Down Expand Up @@ -79,7 +79,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: |
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
echo "::set-output name=c-found-count::$(cat /home/runner/reports/semgrep.out | jq '.results | length')"
- name: Fail if found
if: steps.c_scan.outputs.c-found-count > 0
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
echo "::set-output name=javascript-found-count::$(cat /home/runner/reports/semgrep.out | jq '.results | length')"
- name: Fail if found
if: steps.javascript_scan.outputs.javascript-found-count > 0
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down

0 comments on commit e1f9f48

Please sign in to comment.