mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-02 16:43:12 +00:00
[Fix] Dependency Review step has been added to the dependency-review-pr job with the base-ref and head-ref parameters.
This commit is contained in:
parent
f16bda7646
commit
11f88a96b2
1 changed files with 9 additions and 0 deletions
9
.github/workflows/dependency-review.yml
vendored
9
.github/workflows/dependency-review.yml
vendored
|
@ -38,6 +38,12 @@ jobs:
|
|||
- name: Export requirements.txt
|
||||
uses: Divkix/poetry-export-requirements-action@v1.4.0
|
||||
|
||||
- name: Dependency Review
|
||||
uses: actions/dependency-review-action@v3
|
||||
with:
|
||||
base-ref: ${{ github.event.pull_request.base.sha || 'main' }}
|
||||
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
|
||||
|
||||
# Job for scheduled event
|
||||
dependency-review-scheduled:
|
||||
if: github.event_name == 'schedule'
|
||||
|
@ -48,3 +54,6 @@ jobs:
|
|||
|
||||
- name: Dependency Review
|
||||
uses: actions/dependency-review-action@v3
|
||||
with:
|
||||
base-ref: 'main'
|
||||
head-ref: ${{ github.ref }}
|
||||
|
|
Loading…
Reference in a new issue