ci: doc-publish-pr: Improve workflow security
Improve workflow security. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
14478cafa6
commit
e1389fa2cf
1 changed files with 6 additions and 2 deletions
8
.github/workflows/doc-publish-pr.yml
vendored
8
.github/workflows/doc-publish-pr.yml
vendored
|
|
@ -30,8 +30,12 @@ jobs:
|
|||
|
||||
- name: Load PR number
|
||||
if: steps.download-artifacts.outputs.found_artifact == 'true'
|
||||
run: |
|
||||
echo "PR_NUM=$(<pr_num/pr_num)" >> $GITHUB_ENV
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
let fs = require("fs");
|
||||
let pr_number = Number(fs.readFileSync("./pr_num/pr_num"));
|
||||
core.exportVariable("PR_NUM", pr_number);
|
||||
|
||||
- name: Check PR number
|
||||
if: steps.download-artifacts.outputs.found_artifact == 'true'
|
||||
|
|
|
|||
Loading…
Reference in a new issue