Skip to content

Commit 0f19785

Browse files
updated checkout action and command
1 parent 7535711 commit 0f19785

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/snyk_scan.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ jobs:
1515
security:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@master
18+
- name: Checkout Code
19+
uses: actions/checkout@v3
20+
with:
21+
ref: 'main'
22+
1923
- name: Run Snyk To Check For Vulnerabilities
2024
uses: snyk/actions/gradle@master
2125
env:
2226
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2327
with:
24-
command: monitor
28+
command: test
2529
args: --all-sub-projects --org=java-agent --configuration-matching='(^compileClasspath$)|(^runtimeClasspath$)'

0 commit comments

Comments
 (0)