-
Notifications
You must be signed in to change notification settings - Fork 92
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
Create trivy.yml #2458
Merged
Merged
Create trivy.yml #2458
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4c734a5
Create trivy.yml
dcmcand 8843a56
update trivy
dcmcand 3be4572
update format
dcmcand abfdd6f
update job name
dcmcand f221089
update trivy config
dcmcand 8e2a7db
add my branch
dcmcand e55a3e6
try output as table
dcmcand b7e2372
change output to table
dcmcand e78bb48
update scanners
dcmcand 59009fe
change to config scan
dcmcand c6ccd9e
use example values
dcmcand efaacbe
upload even on non zero exit
dcmcand 34e9660
remove exit code
dcmcand 5d89288
try full scan
dcmcand 3a5f486
go back to config scan
dcmcand 1d8e3ec
Update .github/workflows/trivy.yml
dcmcand be22cee
Merge branch 'develop' into add-trivy-to-ci
dcmcand 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 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,46 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Code Scanning | ||
|
||
on: | ||
push: | ||
branches: [ "develop", "release/*" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "develop" ] | ||
schedule: | ||
- cron: '19 23 * * 6' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
SAST: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
name: Trivy config Scan | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Trivy vulnerability scanner in fs mode | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
scan-type: 'config' | ||
hide-progress: true | ||
format: 'sarif' | ||
output: 'trivy-results.sarif' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
if: always() | ||
with: | ||
sarif_file: 'trivy-results.sarif' |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this
actions: read
needed?