Bump ubuntu/ubuntu from 288b44a
to 5b2fc41
#75
Workflow file for this run
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
--- | |
name: Scan Image | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
scan-image: | |
name: Scan Image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Build Image | |
id: build_image | |
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0 | |
with: | |
push: false | |
load: true | |
tags: mlflow | |
- name: Scan Image | |
id: scan_image | |
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0 | |
with: | |
image-ref: mlflow | |
exit-code: 1 | |
format: sarif | |
output: trivy-results.sarif | |
severity: CRITICAL | |
limit-severities-for-sarif: true | |
- name: Scan Image (On SARIF Scan Failure) | |
if: failure() && steps.scan_image.outcome == 'failure' | |
id: scan_image_on_failure | |
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8 # v0.24.0 | |
with: | |
image-ref: mlflow | |
exit-code: 1 | |
format: table | |
severity: CRITICAL | |
- name: Upload SARIF | |
if: always() | |
id: upload_sarif | |
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6 | |
with: | |
sarif_file: trivy-results.sarif |