Skip to content

Commit dc7064a

Browse files
added snyk dependency scanning workflow (#55)
1 parent f495393 commit dc7064a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/snyk_scan.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow automates the process of identifying potential security vulnerabilities
2+
# using Snyk. Dependency vulnerability scans will be run when a push is made to the main
3+
# branch, on a weekly schedule, and can also be triggered manually.
4+
5+
name: Snyk Vulnerability Scan
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '00 15 * * 1'
10+
push:
11+
branches:
12+
- main
13+
14+
jobs:
15+
security:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v3
20+
with:
21+
ref: 'main'
22+
23+
- name: Run Snyk To Check For Vulnerabilities
24+
uses: snyk/actions/gradle@master
25+
env:
26+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
27+
with:
28+
command: monitor
29+
args: --all-sub-projects --org=java-agent --configuration-matching='(^compileClasspath$)|(^runtimeClasspath$)'

0 commit comments

Comments
 (0)