refactor: resolve all new nightly clippy failures #52
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@v4 | |
with: | |
allow-licenses: >- | |
MIT, | |
Apache-2.0, | |
BSD-3-Clause, | |
ISC, | |
Unicode-DFS-2016 | |
# anstyle@1.0.4 is licensed as (MIT OR Apache-2.0), but the Github api fails to detect it: https://github.com/rust-cli/anstyle/tree/main/crates/anstyle | |
allow-dependencies-licenses: 'pkg:cargo/anstyle@1.0.4' | |
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' ) ) }} |