Scan image [ghcr.io/codbex/codbex-kronos] tag [latest] #5
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: Docker image scanner [Anchore] | |
on: | |
workflow_dispatch: | |
inputs: | |
image: | |
required: true | |
type: string | |
default: ghcr.io/codbex/codbex-kronos | |
tag: | |
required: true | |
type: string | |
default: latest | |
run-name: 'Scan image [${{ inputs.image }}] tag [${{ inputs.tag }}]' | |
jobs: | |
scan-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Scan Image | |
uses: anchore/scan-action@v3 | |
id: scan | |
with: | |
image: ${{ inputs.image }}:${{ inputs.tag }} | |
fail-build: false | |
by-cve: true | |
output-format: sarif | |
only-fixed: true | |
- name: Upload Anchore Scan SARIF Report | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: ${{ steps.scan.outputs.sarif }} | |