-
Notifications
You must be signed in to change notification settings - Fork 20
feat: daily vuln scanner #221
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 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
eab76ff
feat: daily vuln scanner
mchmarny a5d66db
chore: add itself for testing
mchmarny 702a6ca
chore: remove hide progress, limit severity in serif, alter cache
mchmarny 0e8c8b1
chore: skip charts
mchmarny 0c1ff37
chore: remove exit on error
mchmarny 29837f2
chore: change runner, remove dead code
mchmarny 3350d8e
chore: change runner to default, check for report before upload
mchmarny 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,65 @@ | ||
| # Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. | ||
| # | ||
| # Licensed 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: Daily Vulnerability Scan | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '30 7 * * *' | ||
| workflow_dispatch: {} # allow manual runs for testing | ||
| pull_request: # add itself for testing changes to this workflow | ||
| paths: | ||
| - '.github/workflows/vuln-scan.yml' | ||
|
|
||
| permissions: | ||
| contents: read | ||
| actions: read | ||
| security-events: write # required to upload SARIF | ||
|
|
||
| concurrency: | ||
| group: scheduled-trivy-scan | ||
| cancel-in-progress: false | ||
|
|
||
| env: | ||
| SARIF_OUTPUT: 'vulnerability-scan-results.sarif' | ||
| SEVERITY_LEVELS: 'HIGH,CRITICAL' | ||
| TRIVY_CACHE_DIR: '.trivy' | ||
|
|
||
| jobs: | ||
| trivy-repo-scan: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
|
|
||
| - name: Scan Repo | ||
| uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # v0.33.1 | ||
| with: | ||
| scan-type: 'fs' | ||
| scan-ref: '.' | ||
| vuln-type: 'os,library' | ||
| scanners: 'vuln,secret,misconfig' | ||
| ignore-unfixed: true | ||
| format: 'sarif' | ||
| output: ${{ env.SARIF_OUTPUT }} | ||
| severity: ${{ env.SEVERITY_LEVELS }} | ||
| skip-dirs: 'vendor,node_modules,distros/kubernetes' | ||
| limit-severities-for-sarif: true | ||
|
|
||
| - name: Upload Report | ||
| if: always() # upload even if scan fails | ||
| uses: github/codeql-action/upload-sarif@16df4fbc19aea13d921737861d6c622bf3cefe23 # v2.23.0 | ||
mchmarny marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| with: | ||
| sarif_file: ${{ env.SARIF_OUTPUT }} | ||
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.