Trivy Image Scan Workflow #3
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 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 | |