Skip to content

🌱 Bump codecov/codecov-action from 5.0.7 to 5.1.1 in the github-actions group #150

🌱 Bump codecov/codecov-action from 5.0.7 to 5.1.1 in the github-actions group

🌱 Bump codecov/codecov-action from 5.0.7 to 5.1.1 in the github-actions group #150

Workflow file for this run

name: Docker Image Scan
on:
pull_request:
branches: [ main ]
jobs:
scan:
name: Build and Scan
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Notify on failure
if: failure()
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '❌ Container security scan failed. Please check the workflow logs.'
})
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
- name: Build local container
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
tags: localbuild/testimage:latest
push: false
load: true
- name: Scan image
uses: anchore/scan-action@869c549e657a088dc0441b08ce4fc0ecdac2bb65 # v5.3.0
with:
image: "localbuild/testimage:latest"
fail-build: true
severity-cutoff: high
- name: Upload scan results
uses: github/codeql-action/upload-sarif@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3.27.6
if: success() || failure()
with:
sarif_file: results.sarif