Merge pull request #38 from sakan811/sakan811-patch-3 #36
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 Docker Scan | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run Trivy vulnerability scanner for Backend | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/find-stay-place-backend:latest' | |
format: 'table' | |
- name: Run Trivy vulnerability scanner for Frontend | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/find-stay-place-frontend:latest' | |
format: 'table' |