Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#3557 from oliviassss/fix-deps-work…
Browse files Browse the repository at this point in the history
…flow

fix dependency review workflow
  • Loading branch information
k8s-ci-robot authored Feb 5, 2024
2 parents 2ce25f4 + 2ca0a68 commit 004e2ab
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
name: "Dependency Review"
on: [push, pull_request, workflow_dispatch]
on:
push:
branches:
- main
- 'release-*'
pull_request:
workflow_dispatch:
inputs:
head_ref:
description: 'HEAD git reference (tag/branch/commit) to analyze'
required: true
default: 'main'
type: string
base_ref:
description: 'Base git reference (tag/branch/commit) to compare against head_ref'
required: true
default: 'main'
type: string
permissions:
contents: read
jobs:
Expand All @@ -11,7 +28,10 @@ jobs:
with:
show-progress: false
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
uses: actions/dependency-review-action@v4
with:
base-ref: ${{ inputs.base_ref || github.event.pull_request.base.sha || 'main' }}
head-ref: ${{ inputs.head_ref || github.event.pull_request.head.sha || github.ref }}
govulncheck:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 004e2ab

Please sign in to comment.