Skip to content

Commit cc3de29

Browse files
committed
rename if condition variable
1 parent 5d245d6 commit cc3de29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/scan.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
CVE_CRITICAL: ${{ env.CVE_CRITICAL }}
3636
CVE_HIGH: ${{env.CVE_HIGH}}
3737
CVE_MEDIUM: ${{env.CVE_MEDIUM}}
38+
# CVE_CRITICAL: ${{ steps.cve_description.outputs.CVE_CRITICAL }}
39+
# CVE_HIGH: ${{ steps.cve_description.outputs.CVE_HIGH }}
40+
# CVE_MEDIUM: ${{ steps.cve_description.outputs.CVE_MEDIUM }}
3841
steps:
3942
- name: Checkout the code
4043
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0
@@ -52,6 +55,7 @@ jobs:
5255
with:
5356
sarif_file: 'results.sarif'
5457
- name: CVE Description escaped extraction and print
58+
# id: cve_description
5559
run: |
5660
SCAN_RESULTS=$(jq -r 'try .runs[0].tool.driver.rules | map(.help.text) | join("\\n")' results.sarif)
5761
echo "CVE_CRITICAL=$(echo $SCAN_RESULTS | grep -o CRITICAL | wc -l)" >> $GITHUB_ENV
@@ -67,7 +71,7 @@ jobs:
6771
SendSlackNotification:
6872
needs: BuildAndScan
6973
uses: ./.github/workflows/send-slack-notification.yml
70-
if: github.event_name == 'schedule' && steps.cve-threshold.outcome == 'failure'
74+
if: github.event_name == 'schedule' && needs.BuildAndScan.steps.cve-threshold.outcome == 'failure'
7175
with:
7276
CVE_CRITICAL: ${{needs.BuildAndScan.outputs.CVE_CRITICAL}}
7377
CVE_HIGH: ${{needs.BuildAndScan.outputs.CVE_HIGH}}

0 commit comments

Comments
 (0)