opendatahub-io / notebooks

Notebook images for ODH
Apache License 2.0
15 stars 51 forks source link

RHOAIENG-9473: Optionally enable Trivy for pull requests #607

Closed caponetto closed 2 days ago

caponetto commented 6 days ago

https://issues.redhat.com/browse/RHOAIENG-9473

Description

This PR enables Trivy scan for PRs. It won't run by default for all PRs because it adds extra minutes to the jobs and the report won't be needed for all PRs. In order to execute the scan, the label trivy-scan must be added to the PR before its creation. The workflow does not react to label changes, so a new commit must be pushed to run the scan if the trivy-scan label is added after the PR is opened.

Also on this PR:

How Has This Been Tested?

I've executed the tests on my fork.

Merge criteria:

jiridanek commented 2 days ago

@atheo89 can you please create a trivy-scan label in this project, and give it some nice color?

openshift-ci[bot] commented 2 days ago

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: jiridanek, jstourac

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/opendatahub-io/notebooks/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment