Skip to content

Commit

Permalink
Create sample.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD authored May 2, 2024
1 parent f2e0821 commit eea8426
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI/CD Pipeline

on:
push:
branches: dev

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Scan files with Trivy
run: |
trivy fs . > trivy-files.txt
# Assuming Trivy is already installed in the system

- name: Install dependencies and build
run: |
npm install
npm run build
- name: Send scan reports via email
run: |
echo "Scan report attached." | mail -s "Trivy Scan Report" -A trivy-files.txt abhilash.dube@tekditechnologies.com

0 comments on commit eea8426

Please sign in to comment.