Skip to content

Commit dd14ec1

Browse files
[Aikido] AI Fix for Template Injection in GitHub Workflows Action (#159)
Co-authored-by: aikido-autofix[bot] <119856028+aikido-autofix[bot]@users.noreply.github.com>
1 parent 3975640 commit dd14ec1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/cd-build-and-publish-image.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,17 @@ jobs:
4848
- name: Get next application version
4949
id: get_next_application_version
5050
shell: pwsh
51+
env:
52+
GIT_TAG_NAME: ${{ inputs.git_tag_name }}
53+
MAJOR_VERSION: ${{ inputs.major_version }}
54+
MINOR_VERSION: ${{ inputs.minor_version }}
55+
PATCH_VERSION_STARTS_FROM: ${{ inputs.patch_version_starts_from }}
5156
run: >-
5257
./.github/scripts/Get-NextApplicationVersion.ps1
53-
-GitTagName "${{ inputs.git_tag_name }}"
54-
-MajorVersion "${{ inputs.major_version }}"
55-
-MinorVersion "${{ inputs.minor_version }}"
56-
-PatchVersionStartsFrom "${{ inputs.patch_version_starts_from }}"
58+
-GitTagName "$env:GIT_TAG_NAME"
59+
-MajorVersion "$env:MAJOR_VERSION"
60+
-MinorVersion "$env:MINOR_VERSION"
61+
-PatchVersionStartsFrom "$env:PATCH_VERSION_STARTS_FROM"
5762
5863
docker-build-push:
5964
needs: get-next-application-version

0 commit comments

Comments
 (0)