Skip to content

Commit

Permalink
ci: added Trivy scan workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sakan811 committed Sep 30, 2024
1 parent 819c440 commit d44383a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Build

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'

0 comments on commit d44383a

Please sign in to comment.