Skip to content
Merged
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
33 changes: 33 additions & 0 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Security Scan

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master

jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v46
with:
files: |
**/requirements.txt
- name: Run Vulnerability Scanner
if: steps.changed-files.outputs.any_changed == 'true'
uses: fylein/vulnerability-scan-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
is_submodule: true

- name: Skip Vulnerability Scanner
if: steps.changed-files.outputs.any_changed != 'true'
run: echo "No changes to dependency files, skipping vulnerability scan."
Loading