Skip to content

Commit 1d5d03d

Browse files
MGD-13107(fix): temp reorder to check args without --
1 parent 3dc589b commit 1d5d03d

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/snyk.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,26 @@ jobs:
2323
- name: Checkout code
2424
uses: actions/checkout@v7
2525

26-
- name: Run Snyk to check for vulnerabilities
27-
uses: snyk/actions/node@v1.0.0
28-
env:
29-
SNYK_TOKEN: ${{ secrets.SNYK_API_TOKEN }}
30-
with:
31-
# Fail the build on high severity vulnerabilities
32-
args: --severity-threshold=high
33-
3426
- name: Run Snyk Monitor
3527
# Only monitor on main branch pushes and releases, not on PRs
36-
if: github.event_name != 'pull_request' && github.event_name != 'merge_group'
28+
# if: github.event_name != 'pull_request' && github.event_name != 'merge_group'
3729
uses: snyk/actions/node@v1.0.0
3830
env:
3931
SNYK_TOKEN: ${{ secrets.SNYK_API_TOKEN }}
4032
with:
4133
command: monitor
42-
args: >
43-
--
34+
args: >-
4435
--all-projects
4536
--target-reference=${{ github.ref_name }}
4637
--project-environment=external
4738
--project-lifecycle=development
4839
--project-business-criticality=low
49-
--project-tags=team=team-se-cloud-automation,ticket-creation=true
5040
--exclude=node_modules
41+
42+
- name: Run Snyk to check for vulnerabilities
43+
uses: snyk/actions/node@v1.0.0
44+
env:
45+
SNYK_TOKEN: ${{ secrets.SNYK_API_TOKEN }}
46+
with:
47+
# Fail the build on high severity vulnerabilities
48+
args: --severity-threshold=high

0 commit comments

Comments
 (0)