File tree Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Expand file tree Collapse file tree 4 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 85
85
- name : Setup snyk
86
86
uses :
snyk/actions/[email protected]
87
87
- name : Snyk test
88
- run : snyk test -d --all-sub-projects --org=hypertrace --severity-threshold=low --configuration-matching="^runtimeClasspath$"
88
+ run : snyk test -d --all-sub-projects --org=hypertrace --severity-threshold=low --policy-path=.snyk -- configuration-matching="^runtimeClasspath$"
89
89
env :
90
90
SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
91
91
GRADLE_OPTS : -Dorg.gradle.workers.max=1
Original file line number Diff line number Diff line change
1
+ # Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2
+ version: v1.22.1
3
+ # ignores vulnerabilities until expiry date; change duration by modifying expiry date
4
+ ignore:
5
+ SNYK-JAVA-ORGJETBRAINSKOTLIN-2393744:
6
+ - '*':
7
+ reason: no available replacement
8
+ expires: 2022-11-30T00:00:00.000Z
Original file line number Diff line number Diff line change @@ -9,5 +9,13 @@ dependencies {
9
9
api(" io.opentelemetry:opentelemetry-api:${versions[" opentelemetry" ]} " )
10
10
api(" io.opentelemetry.javaagent:opentelemetry-javaagent-instrumentation-api:${versions[" opentelemetry_java_agent" ]} " )
11
11
implementation(" org.slf4j:slf4j-api:${versions[" slf4j" ]} " )
12
- implementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.3" )
12
+ implementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.3" ) {
13
+ constraints {
14
+ implementation(" org.yaml:snakeyaml:1.31" ) {
15
+ because(
16
+ " SNYK error SNYK-JAVA-ORGYAML-2806360"
17
+ )
18
+ }
19
+ }
20
+ }
13
21
}
Original file line number Diff line number Diff line change @@ -47,7 +47,15 @@ dependencies {
47
47
api(" com.google.protobuf:protobuf-java" )
48
48
api(" com.google.protobuf:protobuf-java-util" )
49
49
// convert yaml to json, since java protobuf impl supports only json
50
- implementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.3" )
50
+ implementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.3" ) {
51
+ constraints {
52
+ implementation(" org.yaml:snakeyaml:1.31" ) {
53
+ because(
54
+ " SNYK error SNYK-JAVA-ORGYAML-2806360"
55
+ )
56
+ }
57
+ }
58
+ }
51
59
// fix vulnerability
52
60
constraints {
53
61
api(" com.google.code.gson:gson:2.8.9" )
You can’t perform that action at this time.
0 commit comments