-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OWASP dependency check (open-telemetry#6978)
See comment in the github action that explains why I think this is helpful: > the benefit of this over dependabot is that this also analyzes transitive dependencies > while dependabot (at least currently) only analyzes top-level dependencies
- Loading branch information
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# the benefit of this over dependabot is that this also analyzes transitive dependencies | ||
# while dependabot (at least currently) only analyzes top-level dependencies | ||
name: OWASP dependency check (daily) | ||
|
||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Java 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: ":javaagent:dependencyCheckAnalyze" | ||
|
||
- name: Upload report | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: javaagent/build/reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd"> | ||
<suppress> | ||
<!-- this suppresses opentelemetry instrumentation modules and artifacts which get misidentified | ||
as real dependencies like dubbo and prometheus --> | ||
<packageUrl regex="true">^pkg:maven/io\.opentelemetry[./].*</packageUrl> | ||
<vulnerabilityName regex="true">^CVE-.*</vulnerabilityName> | ||
</suppress> | ||
</suppressions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters