mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 15:43:28 +02:00
wrap version variable to prevent script injection
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e2f3cfd173
commit
568eaa88fe
4
.github/workflows/build-push-backend.yml
vendored
4
.github/workflows/build-push-backend.yml
vendored
@@ -95,9 +95,9 @@ jobs:
|
||||
id: version
|
||||
run: |
|
||||
if [[ "${{ github.event_name }}" == "release" ]]; then
|
||||
VERSION=${{ github.event.release.tag_name }}
|
||||
VERSION="${{ github.event.release.tag_name }}"
|
||||
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
|
||||
VERSION=${{ github.ref_name }}
|
||||
VERSION="${{ github.ref_name }}"
|
||||
else
|
||||
DATE_STAMP=$(date -u +'%Y.%m.%d')
|
||||
VERSION="dev-${DATE_STAMP}-${{ github.run_number }}"
|
||||
|
||||
@@ -55,9 +55,9 @@ jobs:
|
||||
id: version
|
||||
run: |
|
||||
if [[ "${{ github.event_name }}" == "release" ]]; then
|
||||
VERSION=${{ github.event.release.tag_name }}
|
||||
VERSION="${{ github.event.release.tag_name }}"
|
||||
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
|
||||
VERSION=${{ github.ref_name }}
|
||||
VERSION="${{ github.ref_name }}"
|
||||
else
|
||||
DATE_STAMP=$(date -u +'%Y.%m.%d')
|
||||
VERSION="dev-${DATE_STAMP}-${{ github.run_number }}"
|
||||
|
||||
Reference in New Issue
Block a user