-
Notifications
You must be signed in to change notification settings - Fork 9
ci: upload scan results to security agent #681
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
base: main
Are you sure you want to change the base?
ci: upload scan results to security agent #681
Conversation
- name: Run Trivy vulnerability scan | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: "ddn-workspace:test" | ||
format: "sarif" | ||
output: "trivy-results.sarif" | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
if: always() | ||
with: | ||
sarif_file: "trivy-results.sarif" | ||
|
||
- name: Print Trivy vulnerability scan results | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: "ddn-workspace:test" | ||
format: "table" | ||
exit-code: 0 | ||
ignore-unfixed: true | ||
vuln-type: "os,library" | ||
severity: "CRITICAL,HIGH" | ||
|
||
|
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.
@codingkarthik I have two questions for you:
- Running the scan in the
build-ddn-workspace
leads to a "no space left on disk" error like this. Was it the reason we chose to run the trivy scan as part oftest-connectors
job? - Right now
test-connectors
job is failing like this - it might be valid test failure or a flake (I will let you determine). But do you think it is okay to run this CI job on all PRs and in the main branch to keep the tests passing always?
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.
Running the scan in the build-ddn-workspace leads to a "no space left on disk" error like this. Was it the reason we chose to run the trivy scan as part of test-connectors job?
No, I just wanted the testing bit to be separate from the building ddn workspace bit. I have never seen the no space left on disk error.
Right now test-connectors job is failing like this - it might be valid test failure or a flake (I will let you determine). But do you think it is okay to run this CI job on all PRs and in the main branch to keep the tests passing always?
I think this is a bug in the DDN workspace testing framework, the test is now picking up the wrong version of the connector. I will fix this in this PR itself.
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.
I added a patch to revert to run the scan after the tests. I think tests are still failing - could you check once?
…en matrix is empty
This reverts commit c31a99c.
This PR does the following: