fix(ci): fix cargo deny workflow (#1048) #4
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: Cargo Deny | |
| permissions: {} | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, synchronize] | |
| paths: | |
| - 'Cargo.lock' | |
| - 'deny.toml' | |
| - '.github/workflows/deny.yml' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'Cargo.lock' | |
| - 'deny.toml' | |
| - '.github/workflows/deny.yml' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: ${{ github.ref_name != 'main' }} | |
| jobs: | |
| deny: | |
| name: Cargo Deny | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Output rolldown hash | |
| id: upstream-versions | |
| run: node -e "console.log('ROLLDOWN_HASH=' + require('./packages/tools/.upstream-versions.json').rolldown.hash)" >> $GITHUB_OUTPUT | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| repository: rolldown/rolldown | |
| path: rolldown | |
| ref: ${{ steps.upstream-versions.outputs.ROLLDOWN_HASH }} | |
| - uses: oxc-project/setup-rust@d286d43bc1f606abbd98096666ff8be68c8d5f57 # v1.0.0 | |
| with: | |
| restore-cache: false | |
| # Pinned to 0.18.6+ for CVSS 4.0 support (EmbarkStudios/cargo-deny#805) | |
| tools: cargo-deny@0.19.0 | |
| - run: cargo deny check |