Skip to content

Commit

Permalink
ci: doc-publish-pr: Improve workflow security
Browse files Browse the repository at this point in the history
Improve workflow security.

Signed-off-by: Stephanos Ioannidis <[email protected]>
  • Loading branch information
stephanosio committed Oct 29, 2024
1 parent 14478ca commit e1389fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/doc-publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e1389fa

Please sign in to comment.