-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Snyk monitor and snyk clean up after PR closed/merged (#1646)
* added snyk monitor and clean up * used jdk 11 and add options * Update snyk-cli-scan.yml added explicit mvn package prepare for snyk * Update snyk-cli-scan.yml * use jdk 8 * added .snyk.ignore.example and .snyk * triggered by branch 4.x * address a few high CVEs identified by snyk scan * ignore graal-sdk CVE for now until we can move off java8 * clean up snyk yaml files * JAVA-3050: Upgrade Netty 4.1.94 to address recent CVEs osgi-tests/BundleOptions.java - since netty-4.1.78, netty-handler additionally depends on netty-transport-native-unix-common so we need to pull that in when configuring pax exam --------- Co-authored-by: weideng1 <[email protected]> Co-authored-by: Henry Hughes <[email protected]>
- Loading branch information
1 parent
5d3968b
commit a3a8a4f
Showing
6 changed files
with
97 additions
and
5 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,47 @@ | ||
name: 🔬 Snyk cli SCA | ||
|
||
on: | ||
push: | ||
branches: [ 4.x ] | ||
pull_request: | ||
branches: [ 4.x ] | ||
workflow_dispatch: | ||
|
||
env: | ||
SNYK_SEVERITY_THRESHOLD_LEVEL: high | ||
|
||
jobs: | ||
snyk-cli-scan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: prepare for snyk scan | ||
uses: datastax/shared-github-actions/actions/snyk-prepare@main | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '8' | ||
cache: maven | ||
|
||
- name: run maven install prepare for snyk | ||
run: | | ||
mvn -B -V install -DskipTests -Dmaven.javadoc.skip=true | ||
- name: snyk scan java | ||
uses: datastax/shared-github-actions/actions/snyk-scan-java@main | ||
with: | ||
directories: . | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }} | ||
extra-snyk-options: "-DskipTests -Dmaven.javadoc.skip=true" | ||
|
||
- name: Snyk scan result | ||
uses: datastax/shared-github-actions/actions/snyk-process-scan-results@main | ||
with: | ||
gh_repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }} |
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,16 @@ | ||
name: 🗑️ Snyk PR cleanup - merged/closed | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- snyk-monitor | ||
workflow_dispatch: | ||
|
||
jobs: | ||
snyk_project_cleanup_when_pr_closed: | ||
uses: datastax/shared-github-actions/.github/workflows/snyk-pr-cleanup.yml@main | ||
secrets: | ||
snyk_token: ${{ secrets.SNYK_TOKEN }} | ||
snyk_org_id: ${{ secrets.SNYK_ORG_ID }} |
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,19 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.22.2 | ||
# ignores vulnerabilities until expiry date; change duration by modifying expiry date | ||
ignore: | ||
SNYK-JAVA-ORGGRAALVMSDK-2767964: | ||
- '*': | ||
reason: cannot upgrade to graal-sdk 22.1.0+ until we move off Java8, which is slated for later this year | ||
expires: 2024-01-10T00:00:00.000Z | ||
created: 2023-06-21T00:00:00.000Z | ||
SNYK-JAVA-ORGGRAALVMSDK-2769618: | ||
- '*': | ||
reason: cannot upgrade to graal-sdk 22.1.0+ until we move off Java8, which is slated for later this year | ||
expires: 2024-01-10T00:00:00.000Z | ||
created: 2023-06-21T00:00:00.000Z | ||
SNYK-JAVA-ORGGRAALVMSDK-5457933: | ||
- '*': | ||
reason: cannot upgrade to graal-sdk 22.1.0+ until we move off Java8, which is slated for later this year | ||
expires: 2024-01-10T00:00:00.000Z | ||
created: 2023-06-21T00:00:00.000Z |
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 @@ | ||
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. | ||
version: v1.22.2 | ||
# ignores vulnerabilities until expiry date; change duration by modifying expiry date | ||
ignore: | ||
SNYK-PYTHON-URLLIB3-1533435: | ||
- '*': | ||
reason: state your ignore reason here | ||
expires: 2030-01-01T00:00:00.000Z | ||
created: 2022-03-21T00:00:00.000Z |
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