Skip to content

Commit

Permalink
support dependency review config
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtro committed Oct 17, 2024
1 parent bcc3d43 commit d741d66
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,23 @@ jobs:
- name: 'Checkout Repository'
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: 'Check Config'
id: check_config
run: |
if [ -f .github/dependency-review-config.yml ]; then
echo "dependency_review_config_exists=true" >> $GITHUB_ENV
else
echo "dependency_review_config_exists=false" >> $GITHUB_ENV
fi
- name: Dependency Review (local config)
if: env.dependency_review_config_exists == 'true'
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4
with:
config-file: './.github/dependency-review-config.yml'

- name: Dependency Review
if: env.dependency_review_config_exists == 'false'
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4
with:
# Possible values: "critical", "high", "moderate", "low"
fail-on-severity: high
fail-on-severity: high

0 comments on commit d741d66

Please sign in to comment.