Skip to content

Commit

Permalink
Dependency review improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Dec 29, 2024
1 parent c8e562f commit 77d0864
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
name: "Dependency Review"

on:
pull_request:
pull_request_target:
types: [ "opened", "synchronize", "edited", "reopened" ]
paths-ignore:
- "docs/**"
paths:
- "*"
- ".github/**"
push:
branches:
- "**"
paths-ignore:
- "docs/**"
paths:
- "*"
- ".github/**"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

permissions:
contents: "read"
pull-requests: "write"

jobs:
dependency-review:
name: "Dependency Review"
runs-on: "ubuntu-latest"

if: |
github.event_name != 'pull_request'
|| github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Dependency Review"
uses: "actions/dependency-review-action@v4"
with:
base-ref: "${{ github.event.before }}"
head-ref: "${{ github.sha }}"
base-ref: "${{ github.event_name == 'push' && github.event.before || '' }}"
head-ref: "${{ github.event_name == 'push' && github.sha || '' }}"
comment-summary-in-pr: "always"
fail-on-severity: "high"
show-openssf-scorecard: false

0 comments on commit 77d0864

Please sign in to comment.