Skip to content

Merge pull request #4 from Akbari-Negin/function_chain #25

Merge pull request #4 from Akbari-Negin/function_chain

Merge pull request #4 from Akbari-Negin/function_chain #25

Workflow file for this run

name: ImageScan
on:
push:
branches:
- main
paths-ignore:
- 'argocd/**'
jobs:
trivy:
name: ImageScan
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build an image from Dockerfile
run: |
docker build -t docker.io/aslanpour/aifaas:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'docker.io/aslanpour/aifaas:${{ github.sha }}'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'