feat(dependency-review): add inputs for base_ref and head_ref in workflow
This commit is contained in:
14
.github/workflows/dependency-review.yaml
vendored
14
.github/workflows/dependency-review.yaml
vendored
@@ -4,6 +4,17 @@ name: Dependency Review
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
base_ref:
|
||||||
|
description: 'The base ref for the dependency review'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'next'
|
||||||
|
head_ref:
|
||||||
|
description: 'The head ref for the dependency review'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'next'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -19,3 +30,6 @@ jobs:
|
|||||||
|
|
||||||
- name: 🚀 Dependency Review
|
- name: 🚀 Dependency Review
|
||||||
uses: actions/dependency-review-action@v4
|
uses: actions/dependency-review-action@v4
|
||||||
|
with:
|
||||||
|
base-ref: ${{ inputs.base_ref }}
|
||||||
|
head-ref: ${{ inputs.head_ref }}
|
||||||
|
|||||||
Reference in New Issue
Block a user