deno: Add information about CVE-2025-48935 #1770
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: Assign IDs | |
| on: | |
| push: | |
| branches: main | |
| permissions: {} | |
| jobs: | |
| assign-ids: | |
| name: Assign IDs | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # for create-pull-request | |
| pull-requests: write # for create-pull-request | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Cache cargo bin | |
| id: admin-cache | |
| uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 | |
| with: | |
| path: ~/.cargo/bin | |
| key: rustsec-admin-7ed6bee1571768e528a6631400d3b51f37463b29 | |
| - name: Install rustsec-admin | |
| if: steps.admin-cache.outputs.cache-hit != 'true' | |
| run: cargo install --git https://github.com/rustsec/rustsec rustsec-admin --rev 7ed6bee1571768e528a6631400d3b51f37463b29 | |
| - name: Assign IDs | |
| id: assign | |
| run: | | |
| message=$(rustsec-admin assign-id --github-actions-output) | |
| echo "commit_message=${message}" >> $GITHUB_OUTPUT | |
| - name: Create duplicate ID assignment guard | |
| run: | | |
| echo "This file causes merge conflicts if two ID assignment jobs run concurrently." > .duplicate-id-guard | |
| echo "This prevents duplicate ID assignment due to a race between those jobs." >> .duplicate-id-guard | |
| ls -R ./crates/ ./rust/ | sha256sum >> .duplicate-id-guard | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: ${{ steps.assign.outputs.commit_message }} | |
| title: ${{ steps.assign.outputs.commit_message }} | |
| branch: assign-ids |