Skip to content

Commit

Permalink
Use fromJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Feb 2, 2024
1 parent efbe968 commit 0889ed3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/sendJsonFile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ jobs:
env:
# transfer user input to env variables to escape any code
# https://blog.gitguardian.com/github-actions-security-cheat-sheet/
channel: ${{ toJSON(steps.get-data.outputs.releaseChannel) }}
publisher: ${{ steps.get-data.outputs.publisher }}
sourceUrl: ${{ steps.get-data.outputs.sourceUrl }}
url: ${{ steps.get-data.outputs.downloadUrl }}
licName: ${{ steps.get-data.outputs.licenseName }}
licUrl: ${{ steps.get-data.outputs.licenseURL }}
channel: ${{ fromJSON(steps.get-data.outputs.releaseChannel) }}
publisher: ${{ fromJSON(steps.get-data.outputs.publisher) }}
sourceUrl: ${{ fromJSON(steps.get-data.outputs.sourceUrl) }}
url: ${{ fromJSON(steps.get-data.outputs.downloadUrl) }}
licName: ${{ fromJSON(steps.get-data.outputs.licenseName) }}
licUrl: ${{ fromJSON(steps.get-data.outputs.licenseURL) }}
# wrap all user input in quotations to prevent RCE e.g. www.example.com/&rm -rf
run: |
validation/runcreatejson `
Expand Down

0 comments on commit 0889ed3

Please sign in to comment.