Skip to content

Create dependency-scan.yml #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github.workflows/dependency-scan.yml
Original file line number Diff line number Diff line change
@@ -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