diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 000000000..56a103178 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,38 @@ +name: Dependency Review +on: + pull_request: + workflow_dispatch: + inputs: + base-ref: + description: Base git ref for comparison (e.g. a tag or commit SHA) + required: true + head-ref: + description: Head git ref for comparison (defaults to HEAD) + required: false + default: HEAD + +permissions: {} + +jobs: + dependency-review: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Dependency Review + uses: actions/dependency-review-action@v4 + with: + base-ref: ${{ inputs.base-ref || '' }} + head-ref: ${{ inputs.head-ref || '' }} + allow-licenses: >- + MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, + PSF-2.0, Python-2.0, 0BSD, BlueOak-1.0.0, + CC0-1.0, CC-BY-3.0, CC-BY-4.0, Unlicense, + MPL-2.0, + LGPL-2.1-only, LGPL-2.1-or-later, + LGPL-3.0-only, LGPL-3.0-or-later, + Artistic-2.0