Skip to content

Commit 33c49c5

Browse files
authored
Add snyk scan to CI (#156)
Co-authored-by: Madhavan Sridharan <[email protected]>
1 parent dd8843f commit 33c49c5

File tree

5 files changed

+47
-0
lines changed

5 files changed

+47
-0
lines changed

.github/workflows/snyk-cli-scan

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# GitHub action CI
2+
# trigger by:
3+
# any push on any protected branch: main, v6.8, releases/**
4+
# any PR crteated against any protected branch: main, v6.8, releases/**
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
workflow_dispatch:
12+
13+
env:
14+
SNYK_SEVERITY_THRESHOLD_LEVEL: high

.github/workflows/snyk-cli-scan-pr

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GitHub Action CI
2+
# Snyk clean-up when PR is merged/closed
3+
4+
on:
5+
pull_request:
6+
types:
7+
- closed
8+
branches:
9+
- main
10+
workflow_dispatch:
11+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dependency-reduced-pom.xml
66
.idea/*
77
cassandra-data-migrator.iml
88
SIT/local
9+
*.DS_Store

.snyk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# .snyk
2+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
3+
# See https://docs.snyk.io/scan-cloud-deployment/snyk-infrastructure-as-code/snyk-cli-for-infrastructure-as-code/iac-ignores-using-the-.snyk-policy-file for details.
4+
version: v1.22.2
5+
python: '3.7'
6+
patch: {}
7+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
8+
ignore:
9+

.snyk.ignore.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# .snyk.ignore.example
2+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
3+
version: v1.22.2
4+
python: '3.7'
5+
patch: {}
6+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
7+
ignore:
8+
SNYK-PYTHON-URLLIB3-1533435:
9+
- '*':
10+
reason: state your ignore reason here
11+
expires: 2030-01-01T00:00:00.000Z
12+
created: 2022-03-21T13:19:22.196Z

0 commit comments

Comments
 (0)