Skip to content

Commit

Permalink
Update Netflix.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Googleoy authored Feb 11, 2024
1 parent b8832b6 commit fef5d7e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/Netflix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build,Analyze,Scan

on:
push:
Expand All @@ -7,7 +7,7 @@ on:


jobs:
build:
build-analyze-scan:
name: Build
runs-on: ubuntu-latest
steps:
Expand All @@ -18,6 +18,22 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

- name: install trivy
run: |
#install trivy
sudo apt-get install wget apt-transport-https gnupg lsb-release -y
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
sudo apt-get update
sudo apt-get install trivy -y
#command to scan files
trivy fs .



# If you wish to fail your job when the Quality Gate is red, uncomment the
# following lines. This would typically be used to fail a deployment.
# - uses: sonarsource/sonarqube-quality-gate-action@master
Expand Down

0 comments on commit fef5d7e

Please sign in to comment.