1
Fork 0
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:
ExploitDemon 2024-01-24 07:38:24 -07:00
parent f16bda7646
commit 11f88a96b2

View file

@ -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 }}