Skip to content
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

SCA scans on PR and push to check for new vulnerabilities #966

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Dependabot Scan"

on:
workflow_call:

jobs:
dependency-review-pr:
if: ${{github.event_name == 'pull_request'}}
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4

- name: 'Review changes to repository supply chain'
uses: actions/dependency-review-action@v3
with:
# Fails only on critical findings as it is not possible to pass the build altogether
fail-on-severity: critical

dependency-review-push:
if: ${{github.event_name == 'push'}}
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
with:
# Checkout this revision and the previous one
fetch-depth: 2

- name: 'Review changes to repository supply chain'
uses: actions/dependency-review-action@v3
with:
# Fails only on critical findings as it is not possible to pass the build altogether
fail-on-severity: critical
# Set the latest commit as the head-ref and the former as the base-ref for comparison
base-ref: refs/heads/main~1
head-ref: refs/heads/main