ci: adopt Nuget and Arm64 changes from WDR (#44) #122
This file contains hidden or 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: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.compare || github.head_ref || github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| 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' ) ) }} |