chore(deps): pin alpine docker tag to a8560b3 #159
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: 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.15.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' |