File tree Expand file tree Collapse file tree
exporters/otlp/testing-internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # the benefit of this over renovate is that this also analyzes transitive dependencies
2+ # while renovate (at least currently) only analyzes top-level dependencies
3+ name : OSS Index dependency audit (daily)
4+
5+ on :
6+ schedule :
7+ - cron : " 30 1 * * *" # daily at 1:30 UTC
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
12+
13+ jobs :
14+ analyze :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
19+ - uses : actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
20+ with :
21+ distribution : temurin
22+ java-version : 21
23+
24+ - name : Set up gradle
25+ uses : gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
26+
27+ - run : ./gradlew ossIndexAudit
28+ id : audit
29+ continue-on-error : true
30+ env :
31+ SONATYPE_OSS_INDEX_USER : ${{ secrets.SONATYPE_OSS_INDEX_USER }}
32+ SONATYPE_OSS_INDEX_PASSWORD : ${{ secrets.SONATYPE_OSS_INDEX_PASSWORD }}
33+ DEVELOCITY_ACCESS_KEY : ${{ secrets.DEVELOCITY_ACCESS_KEY }}
34+
35+ - name : Print vulnerability report
36+ if : steps.audit.outcome == 'failure'
37+ run : |
38+ echo "=== OSS Index Vulnerability Report ==="
39+ find . -name "oss-index-cyclonedx-bom.json" | xargs cat
40+ exit 1
41+
42+ workflow-notification :
43+ permissions :
44+ contents : read
45+ issues : write
46+ needs :
47+ - analyze
48+ if : always()
49+ uses : ./.github/workflows/reusable-workflow-notification.yml
50+ with :
51+ success : ${{ needs.analyze.result == 'success' }}
Original file line number Diff line number Diff line change 3636 if : steps.audit.outcome == 'failure'
3737 run : |
3838 echo "=== OSS Index Vulnerability Report ==="
39- cat oss-index-cyclonedx-bom.json
39+ find . -name " oss-index-cyclonedx-bom.json" | xargs cat
4040 exit 1
4141
4242 workflow-notification :
Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ plugins {
55description = " OpenTelemetry All"
66otelJava.moduleName.set(" io.opentelemetry.all" )
77
8- // Skip OWASP dependencyCheck task on test module
9- dependencyCheck {
10- skip = true
11- }
12-
138val testTasks = mutableListOf<Task >()
149val jarTasks = mutableListOf<Jar >()
1510
Original file line number Diff line number Diff line change @@ -17,16 +17,6 @@ dependencies {
1717 testImplementation(" com.google.guava:guava" )
1818}
1919
20- dependencyCheck {
21- skipConfigurations.add(" braveInOtelTestAnnotationProcessor" )
22- skipConfigurations.add(" grpcInOtelTestAnnotationProcessor" )
23- skipConfigurations.add(" otelAsBraveTestAnnotationProcessor" )
24- skipConfigurations.add(" otelInBraveTestAnnotationProcessor" )
25- skipConfigurations.add(" otelInGrpcTestAnnotationProcessor" )
26- skipConfigurations.add(" storageWrappersTestAnnotationProcessor" )
27- skipConfigurations.add(" strictContextEnabledTestAnnotationProcessor" )
28- }
29-
3020testing {
3121 suites {
3222 register<JvmTestSuite >(" grpcInOtelTest" ) {
Original file line number Diff line number Diff line change @@ -80,8 +80,3 @@ configurations {
8080 }
8181 }
8282}
83-
84- // Skip OWASP dependencyCheck task on test module
85- dependencyCheck {
86- skip = true
87- }
Original file line number Diff line number Diff line change @@ -37,8 +37,3 @@ dependencies {
3737 implementation(" org.assertj:assertj-core" )
3838 implementation(" org.mock-server:mockserver-netty" )
3939}
40-
41- // Skip OWASP dependencyCheck task on test module
42- dependencyCheck {
43- skip = true
44- }
Original file line number Diff line number Diff line change @@ -42,8 +42,3 @@ tasks {
4242 dependsOn(testing.suites)
4343 }
4444}
45-
46- // Skip OWASP dependencyCheck task on test module
47- dependencyCheck {
48- skip = true
49- }
Original file line number Diff line number Diff line change @@ -33,8 +33,3 @@ tasks {
3333 jvmArgs(" -Dio.opentelemetry.testArchive=${shadowJar.get().archiveFile.get().asFile.absolutePath} " )
3434 }
3535}
36-
37- // Skip OWASP dependencyCheck task on test module
38- dependencyCheck {
39- skip = true
40- }
Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ dependencies {
2929 jmh(project(" :sdk:testing" ))
3030}
3131
32- dependencyCheck {
33- skipConfigurations.add(" debugEnabledTestAnnotationProcessor" )
34- }
35-
3632testing {
3733 suites {
3834 register<JvmTestSuite >(" testIncubating" ) {
You can’t perform that action at this time.
0 commit comments