ci: trigger github actions on merge_group #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependency Review | |
on: | |
push: | |
pull_request: | |
merge_group: | |
jobs: | |
dependency-review: | |
name: Github Dependency Review | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: read | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Dependency Review | |
uses: actions/dependency-review-action@v3 | |
with: | |
allow-licenses: MIT, Apache-2.0 | |
comment-summary-in-pr: on-failure | |
# Explicit refs required for merge_group and push triggers: | |
# https://github.com/actions/dependency-review-action/issues/456 | |
# https://github.com/actions/dependency-review-action/issues/252 | |
base-ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || (github.event_name == 'push' && github.event.before || (github.event_name == 'merge_group' && 'main' || 'unsupported trigger' ) ) }} | |
head-ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || (github.event_name == 'push' && github.sha || (github.event_name == 'merge_group' && github.ref || 'unsupported trigger' ) ) }} |