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

Reusable dependency review workflow #2

Merged
merged 3 commits into from
Nov 6, 2022
Merged
Show file tree
Hide file tree
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions .github/workflows/reusable-dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 'Dependency Review'

on:
workflow_call:
inputs:
fail-on-severity:
type: string
description: "Configure the severity level for vulnerability alerting. Possible values: critical, high, moderate, low."
default: "high"
allow-ghsas:
type: string
description: "A comma separated list of any GitHub Advisory IDs that can be skipped during detection. Example: 'GHSA-abcd-1234-5679, GHSA-efgh-1234-5679'"
deny-licenses:
type: string
description: "Add a custom list of licenses you want to block."
base-ref:
type: string
description: "Provide custom git references for the git base when performing the comparison."
head-ref:
type: string
description: "Provide custom git references for the git head when performing the comparison."

permissions:
contents: read

jobs:
dependency-review:
name: Scan dependencies for license compliance
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: "Dependency Review"
uses: actions/dependency-review-action@0efb1d1d84fc9633afcdaad14c485cbbc90ef46c # v2.5.1
with:
fail-on-severity: ${{ inputs.fail-on-severity }}
allow-ghsas: ${{ inputs.allow-ghsas }}
deny-licenses: ${{ inputs.deny-licenses }}
base-ref: ${{ inputs.base-ref }}
head-ref: ${{ inputs.head-ref }}

File renamed without changes.
File renamed without changes.