-
Notifications
You must be signed in to change notification settings - Fork 438
RATIS-2372. Add weekly CVE vulnerability check workflow for Apache Ratis #1328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
039d160
test
OneSizeFitsQuorum 44d4712
add license
OneSizeFitsQuorum e8be3f4
trigger ci
OneSizeFitsQuorum 4ee134a
fix review
OneSizeFitsQuorum 741ca7b
add MAVEN_ARGS
OneSizeFitsQuorum 6d5e05b
add nvd_key
OneSizeFitsQuorum fda5e1c
add if
OneSizeFitsQuorum 7625801
remove matrix
OneSizeFitsQuorum f92bf43
remove cache
OneSizeFitsQuorum 7e338c4
use jdk11
OneSizeFitsQuorum fbb3318
Update pom.xml
OneSizeFitsQuorum 9d979ef
Update .github/workflows/vulnerability-check.yml
OneSizeFitsQuorum b0a400a
fix
OneSizeFitsQuorum 63bf303
fix
OneSizeFitsQuorum f7d5cbe
Update .github/workflows/vulnerability-check.yaml
OneSizeFitsQuorum 122847b
Update .github/workflows/vulnerability-check.yaml
OneSizeFitsQuorum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,64 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| name: vulnerability-check | ||
|
|
||
| on: | ||
| schedule: | ||
| # Run at 16:00 UTC every Sunday (Monday 00:00 CST) | ||
| - cron: "0 16 * * 0" | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 | ||
| MAVEN_ARGS: --batch-mode --no-transfer-progress | ||
OneSizeFitsQuorum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| dependency-check: | ||
OneSizeFitsQuorum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if: ${{ github.event_name == 'workflow_dispatch' || github.repository == 'apache/ratis' }} | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up JDK 11 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: corretto | ||
| java-version: 11 | ||
|
|
||
| - name: Do Maven install | ||
| shell: bash | ||
| run: mvn $MAVEN_ARGS clean install -DskipTests | ||
|
|
||
| - name: Do the dependency-check:aggregate | ||
| shell: bash | ||
| run: mvn $MAVEN_ARGS org.owasp:dependency-check-maven:aggregate -DossIndexUsername=${{ secrets.OSS_INDEX_USER }} -DossIndexPassword=${{ secrets.OSS_INDEX_TOKEN }} -DnvdApiKey=${{ secrets.NVD_API_KEY }} | ||
OneSizeFitsQuorum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Generate report date for artifact name | ||
| run: | | ||
| utc_time="${{ github.run_started_at }}" | ||
| target_time=$(TZ=Asia/Shanghai date -d "$utc_time" +"%Y-%m-%d") | ||
| echo "REPORT_DATE=$target_time" >> $GITHUB_ENV | ||
|
|
||
| - name: Upload Artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: vulnerability-check-result-${{ env.REPORT_DATE }} | ||
| path: target/dependency-check-report.html | ||
OneSizeFitsQuorum marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| retention-days: 15 | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.