Skip to content

Commit 501ad27

Browse files
committed
fix: update image reference in VSCode automation workflow to use branch name instead of SHA
1 parent ea94ba5 commit 501ad27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/vscode-automation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ jobs:
240240
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
241241
run: |
242242
# Pull the VSCode automation image
243-
IMAGE_NAME="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}"
243+
IMAGE_NAME="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}"
244244
docker pull "$IMAGE_NAME"
245245
246246
echo "🤖 Running automation test for scenario: ${{ matrix.scenario }}"
@@ -364,7 +364,7 @@ jobs:
364364
- name: Run Trivy vulnerability scanner
365365
uses: aquasecurity/trivy-action@master
366366
with:
367-
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
367+
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
368368
format: 'sarif'
369369
output: 'trivy-results-vscode-automation.sarif'
370370

0 commit comments

Comments
 (0)