From d5ed8d4ccbd908c0fe41d2e6f2ae79f2cd2f8277 Mon Sep 17 00:00:00 2001 From: Imambash6 <32916274+Imambash6@users.noreply.github.com> Date: Fri, 14 Feb 2025 11:28:08 +0100 Subject: [PATCH] Create dependency-scan.yml --- .github.workflows/dependency-scan.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github.workflows/dependency-scan.yml diff --git a/.github.workflows/dependency-scan.yml b/.github.workflows/dependency-scan.yml new file mode 100644 index 0000000..3f8035f --- /dev/null +++ b/.github.workflows/dependency-scan.yml @@ -0,0 +1,28 @@ +name: Dependency Scan + +on: + push: # runs on every push + branches: + - main + pull request: # runs on every pull request to main + branches: + - main + schedule: + - cron: '0 0 * * 1' # sceduled runs every monday at midnight UTC timezone + +jobs: + scan: + runs:on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + # Run Trivy for scanning dependencies + - name: Run Trivy Dependency Scan + uses: aquasecurity/trivy-action@master + with: + scan-type: 'fs' + ignore-unfixed: true # ignore vulnerabilities without fixes + format: 'table' + exit-code: '0' # change to '1' if you want workflow to fail if vulnerabilities are found