-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): let Trivy fail without blocking (temporary) (#87)
* chore(ci): let Trivy fail without blocking (temporary) * Reusable Unit Tests and Analysis => .Tests
- Loading branch information
1 parent
b5f1e0a
commit 7c29b8c
Showing
3 changed files
with
25 additions
and
32 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
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 |
---|---|---|
|
@@ -17,15 +17,33 @@ jobs: | |
tests-java: | ||
name: Backend Tests | ||
if: github.event_name != 'pull_request' || !github.event.pull_request.draft | ||
uses: ./.github/workflows/reusable-tests-be.yml | ||
uses: ./.github/workflows/.tests.yml | ||
|
||
repo-reports: | ||
name: Repository Reports | ||
uses: ./.github/workflows/reusable-tests-repo.yml | ||
trivy: | ||
name: Repository Report | ||
if: github.event_name != 'pull_request' || !github.event.pull_request.draft | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run Trivy vulnerability scanner in repo mode | ||
uses: aquasecurity/[email protected] | ||
with: | ||
format: "sarif" | ||
output: "trivy-results.sarif" | ||
ignore-unfixed: true | ||
scan-type: "fs" | ||
scanners: "vuln,secret,config" | ||
severity: "CRITICAL,HIGH" | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: "trivy-results.sarif" | ||
|
||
results: | ||
name: Analysis Results | ||
needs: [tests-java, repo-reports] | ||
# needs: [tests-java, trivy] - uncomment when/if Trivy stops failing (upstream problem) | ||
needs: [tests-java] | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- run: echo "Workflow completed successfully!" |
This file was deleted.
Oops, something went wrong.