feat(deps): upgrade upstream dependencies #252
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: Security Analysis | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, synchronize] | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/**' | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: ${{ github.ref_name != 'main' }} | |
| jobs: | |
| security: | |
| name: Security Analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| # Checkout self and clone upstream rolldown so the bundled cargo-deny check | |
| # inside security-action can resolve workspace members that reference | |
| # `rolldown/crates/*`. Then clear origin so security-action's nested | |
| # taiki-e/checkout-action can re-add it without conflict. | |
| - uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2 | |
| - name: Output rolldown hash | |
| id: upstream-versions | |
| shell: bash | |
| run: node -e "console.log('ROLLDOWN_HASH=' + require('./packages/tools/.upstream-versions.json').rolldown.hash)" >> $GITHUB_OUTPUT | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| repository: rolldown/rolldown | |
| path: rolldown | |
| ref: ${{ steps.upstream-versions.outputs.ROLLDOWN_HASH }} | |
| persist-credentials: false | |
| - name: Clear git origin for nested checkout | |
| shell: bash | |
| run: git remote remove origin | |
| - uses: oxc-project/security-action@585c068c5601ae7fff88ff839d2cd0d2c742bf28 # v1.0.6 |