canonical / charmed-kubeflow-workflows

Repository that containes GitHub workflows and shareable configs for Charmed Kubeflow
0 stars 0 forks source link

[discussion] Should automatic vulnerability reports be enabled `on_push`? #82

Open DnPlas opened 1 month ago

DnPlas commented 1 month ago

Context

More context in #69, specifically in https://github.com/canonical/charmed-kubeflow-workflows/issues/69#issuecomment-2401145286, but bringing the last discussion to this new issue so we can close that other one.

Discussion

Should automatic reports be enabled on_push? - Right now, most (if not all) rocks repositories are scanning images on_push and uploading the vulnerability reports, but:

This can be solved by relying on the scheduled workflow, BUT, the scheduled workflow only scans and reports published images. On the other hand, not enabling this would ensure that the CI is always green and publishing images regardless of the vulnerabilities.

https://github.com/canonical/charmed-kubeflow-workflows/pull/74 shows an example of how this can be added and be left for us to enable it whenever we call get-rocks-modified-and-build-scan-test-publish.yaml in each of the rocks repositories. In this workflow run, the execution shows an example of the feature available, but disabled (as we are not passing the report-vulnerabilities: true to the workflow). On the other hand, this is an example run of the same workflow, but enabling the reports, as seen here. This would be what could happen on_push if we decide that it is worth adding this.