ci: fix RCE vulnerability in file overwrite

https://github.com/vuejs/core/pull/10985

Special thanks to @RedYetiDev
This commit is contained in:
Kevin Deng 三咲智子 2024-05-21 07:05:08 +08:00 committed by 三咲智子 Kevin Deng
parent 4e13a57d9c
commit 1008199647
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -40,12 +40,13 @@ jobs:
with:
name: pr-number
run_id: ${{ github.event.workflow_run.id }}
path: /tmp/pr-number
- name: Read PR Number
id: pr-number
uses: juliangruber/read-file-action@v1
with:
path: ./pr.txt
path: /tmp/pr-number/pr.txt
- name: Download Size Data
uses: dawidd6/action-download-artifact@v3