Skip to content

Trivy Image Scan Workflow #3

Trivy Image Scan Workflow

Trivy Image Scan Workflow #3

Workflow file for this run

name: Trivy Image Scan Workflow
on:
workflow_run:
workflows:
# runs-on: ubuntu-latest -- Used to run on Github hosting
- Code Build Workflow
types:
- completed
jobs:
build:
name: Docker Image Scan
runs-on: self-hosted
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Pull the Docker image From DockerHub
run: docker pull codewithmuh/react-aws-eks-github-actions:latest
- name: Trivy image scan
run: trivy image codewithmuh/react-aws-eks-github-actions:latest