From 71704272e56804a66dd9725dc6ab0703101310bd Mon Sep 17 00:00:00 2001 From: Patrick Stephens Date: Mon, 7 Mar 2022 11:13:16 +0000 Subject: [PATCH] workflows: switch to SHA rather than ref Signed-off-by: Patrick Stephens --- .github/workflows/pr-integration-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-integration-test.yaml b/.github/workflows/pr-integration-test.yaml index 513830bd708..c6a541853e8 100644 --- a/.github/workflows/pr-integration-test.yaml +++ b/.github/workflows/pr-integration-test.yaml @@ -23,7 +23,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} image: ${{ github.repository }}/pr-${{ github.event.number }} - image-tag: ${{ github.event.pull_request.head.ref }} + image-tag: ${{ github.sha }} environment: integration secrets: token: ${{ secrets.GITHUB_TOKEN }} @@ -46,7 +46,7 @@ jobs: uses: calyptia/fluent-bit-ci/.github/workflows/reusable-integration-test-gcp.yaml@main with: image_name: ghcr.io/${{ github.repository }}/pr-${{ github.event.pull_request.number }} - image_tag: ${{ github.event.pull_request.head.ref }} + image-tag: ${{ github.sha }} secrets: grafana_username: ${{ secrets.GRAFANA_USERNAME }} terraform_api_token: ${{ secrets.TF_API_TOKEN }}