-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 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,44 @@ | ||
name: Automatic Security Check | ||
|
||
on: | ||
schedule: | ||
- cron: "0 8 1,15 * *" # At 08:00 on day-of-month 1 and 15 | ||
|
||
jobs: | ||
security-check: | ||
name: Security Check | ||
runs-on: ubuntu-latest | ||
container: openjdk:17-jdk-slim | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: build | ||
run: ./gradlew assemble | ||
# the action has not been updated a while, but it always uses the latest plugin version | ||
- name: Run DependencyCheck plugin | ||
uses: dependency-check/Dependency-Check_Action@main | ||
id: depcheck | ||
continue-on-error: true # we still want to upload the report | ||
with: | ||
project: ${{ github.repository }} | ||
path: '.' | ||
format: 'HTML' | ||
out: 'reports' | ||
args: > | ||
--failOnCVSS 6 | ||
--disableAssembly | ||
--nvdApiKey ${{ secrets.NVD_API_KEY }} | ||
--nvdApiDelay 10000 | ||
- name: Upload test results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dependency-check-report-dwh-exporter | ||
path: ${{ github.workspace }}/reports | ||
- name: Send Notification | ||
uses: slackapi/[email protected] | ||
with: | ||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
text: "*DWH-Exporter Dependency-Check Report*: ${{ job.status }}\nPlease check the report here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" |