-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2e0821
commit eea8426
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
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 |