Fixed unit32 conversion #128
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: 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 |