Skip to content

Fixed unit32 conversion #126

Fixed unit32 conversion

Fixed unit32 conversion #126

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@v7
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@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build local container
uses: docker/build-push-action@v6
with:
tags: localbuild/testimage:latest
push: false
load: true
- name: Scan image
uses: anchore/scan-action@v5
with:
image: "localbuild/testimage:latest"
fail-build: true
severity-cutoff: high
- name: Upload scan results
uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
sarif_file: results.sarif