Skip to content

Commit 7fa5e90

Browse files
Wire workflow_dispatch with base-ref/head-ref inputs
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
1 parent a0cd70f commit 7fa5e90

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/dependency-review.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
name: Dependency Review
2-
on: [pull_request, workflow_dispatch]
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
inputs:
6+
base-ref:
7+
description: Base git ref for comparison (e.g. a tag or commit SHA)
8+
required: true
9+
head-ref:
10+
description: Head git ref for comparison (defaults to HEAD)
11+
required: false
12+
default: HEAD
313

414
permissions: {}
515

@@ -16,6 +26,8 @@ jobs:
1626
- name: Dependency Review
1727
uses: actions/dependency-review-action@v4
1828
with:
29+
base-ref: ${{ inputs.base-ref || '' }}
30+
head-ref: ${{ inputs.head-ref || '' }}
1931
allow-licenses: >-
2032
MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC,
2133
PSF-2.0, Python-2.0, 0BSD, BlueOak-1.0.0,

0 commit comments

Comments
 (0)