-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to perform a dependency check scan. (#37)
* Add the ability to perform a dependency check scan. * Update build.gradle.kts Co-authored-by: Marc-Antoine Fortier <[email protected]> * Sort dependencies by alphabetical order. * Set the output format to SARIF. * Update Dependency-Check to a more recent version. * Change the output format to HTML in the setup script. * Mention the new dep-check in the README file. * Install bundle-audit in the dep-check workflow. --------- Co-authored-by: Marc-Antoine Fortier <[email protected]>
- Loading branch information
1 parent
00eefb5
commit 52f62f9
Showing
5 changed files
with
64 additions
and
1 deletion.
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,41 @@ | ||
name: Dependency Check | ||
|
||
on: | ||
schedule: | ||
- cron: "34 14 * * 2" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dep-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: .tool-versions | ||
bundler-cache: true | ||
- run: | | ||
bundle install | ||
gem install bundler-audit | ||
bundle-audit update | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: "temurin" | ||
java-version: "17" | ||
|
||
- run: chmod +x gradlew | ||
|
||
- run: ./gradlew dependencyCheckAggregate | ||
|
||
- uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: reports/dependency-check-report.sarif |
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
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