Skip to content

Commit

Permalink
Avoid script injection (#4839)
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-kuebler authored Aug 3, 2023
1 parent 04a9a1f commit 3e1d053
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,15 @@ jobs:
CCACHE_COMPRESS: "true"
CCACHE_COMPRESSLEVEL: "6"
CCACHE_MAXSIZE: "600M"
PR_NUMBER: ${{ github.event.number }}
PR_HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
steps:
- run: |
mkdir pr_metadata
echo "${{ github.event.number }}" > pr_metadata/pr_number.txt
echo "${{ github.event.pull_request.head.repo.full_name }}" > pr_metadata/pr_head_repo.txt
echo "${{ github.event.pull_request.head.ref }}" > pr_metadata/pr_head_ref.txt
echo "$PR_NUMBER" > pr_metadata/pr_number.txt
echo "$PR_HEAD_REPO" > pr_metadata/pr_head_repo.txt
echo "$PR_HEAD_REF" > pr_metadata/pr_head_ref.txt
if: github.event_name == 'pull_request' && matrix.config.name == 'Clang Debug'
- name: 'Upload PR metadata'
if: github.event_name == 'pull_request' && matrix.config.name == 'Clang Debug'
Expand Down

0 comments on commit 3e1d053

Please sign in to comment.