-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for known vulnerabilities each day thanks to the OWASP Dependency Check Gradle plugin.
- Loading branch information
1 parent
244621c
commit 98b7cec
Showing
3 changed files
with
87 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,39 @@ | ||
name: Dependency Checks | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # Every day | ||
workflow_dispatch: {} | ||
|
||
env: | ||
JAVA_VERSION: '21' | ||
|
||
jobs: | ||
dependency-check: | ||
name: Dependency Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Checkout GitHub Actions | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: kestra-io/actions | ||
path: actions | ||
ref: main | ||
|
||
# Setup build | ||
- uses: ./actions/.github/actions/setup-build | ||
id: build | ||
with: | ||
java-enabled: true | ||
node-enabled: true | ||
caches-enabled: true | ||
|
||
# Run OWASP dependency check plugin | ||
- name: Run Dependency Check | ||
run: | | ||
./gradlew dependencyCheckAggregate |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd"> | ||
<!-- | ||
This is a CPE/CVE suppression file for the Gradle dependency check plugin. | ||
Each CPE that is found by error (false positive) needs to be suppressed for a specific jar using it's GAV. | ||
If a CVE is disputed or cannot be fixed, it needs to be suppressed by it's CVE identifier. | ||
See https://jeremylong.github.io/DependencyCheck/general/suppression.html | ||
--> | ||
<suppress> | ||
<notes> | ||
<![CDATA[ | ||
Suppress the false positive CPE for Kestra jdbc-mysql to mysql itself | ||
]]> | ||
</notes> | ||
<gav regex="true">io\.kestra:jdbc-mysql.*</gav> | ||
<cpe>cpe:/a:mysql:mysql</cpe> | ||
</suppress> | ||
<suppress> | ||
<notes> | ||
<![CDATA[ | ||
Suppress the false positive CPE for plexus-component-annotations, plexus-interpolation and plexus-utils to codehaus-plexus | ||
]]> | ||
</notes> | ||
<gav regex="true">org\.codehaus\.plexus:plexus.*</gav> | ||
<cpe>cpe:/a:codehaus-plexus_project:codehaus-plexus</cpe> | ||
</suppress> | ||
</suppressions> |