Skip to content

chore(deps): update docker/metadata-action digest to 902fa8e #157

chore(deps): update docker/metadata-action digest to 902fa8e

chore(deps): update docker/metadata-action digest to 902fa8e #157

Workflow file for this run

name: Trivy Container Image Scan - Edge
on:
push:
# branches: [ "master" ]
paths-ignore:
- './mkdocs.yml'
- './docs/**'
pull_request:
branches: [ "master" ]
paths-ignore:
- './mkdocs.yml'
- './docs/**'
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
## Build and scan Edge image
- name: Build an image from Dockerfile - edge
uses: docker/build-push-action@v6.12.0
with:
context: .
file: ./edge-Dockerfile
push: false
tags: ${{ secrets.DOCKER_USERNAME }}/clamav-alpine:${{ github.sha }}
- name: Run Trivy vulnerability scanner - edge
uses: aquasecurity/trivy-action@0.29.0
with:
image-ref: 'docker.io/tquinnelly/clamav-alpine:${{ github.sha }}'
format: 'sarif'
output: 'trivy-results.sarif'
## Upload to Security tab
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: 'trivy-results.sarif'