Skip to content

Commit

Permalink
fix(dependency-review): comment summary only on failure (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sparten11740 committed Feb 21, 2024
1 parent 9c4a20d commit ffa4283
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion dependency-review/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ runs:
steps:
- name: 'Checkout Repository'
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4.0.0
with:
fetch-depth: 2
- name: Get HEAD~1 sha
id: rev-parse
shell: bash
run: echo "sha=$(git rev-parse HEAD~1)" >> "$GITHUB_OUTPUT"
- name: 'Dependency Review'
uses: actions/dependency-review-action@cc4f6536e38d1126c5e3b0683d469a14f23bfea4 # v3
uses: actions/dependency-review-action@9129d7d40b8c12c1ed0f60400d00c92d437adcce # v4
with:
fail-on-severity: high
comment-summary-in-pr: on-failure
allow-licenses: MIT,Apache-2.0,MPL-2.0,ISC,BSD-2-Clause,BSD-3-Clause,Unlicense,CC0-1.0,CC-BY-3.0,WTFPL,0BSD,AFL-2.1
# these are only used for event types other than pull_request and pull_request_target.
base-ref: ${{ steps.rev-parse.outputs.sha }}
head-ref: ${{ github.sha }}

0 comments on commit ffa4283

Please sign in to comment.