From 4738d0b5f83cc77f437d5fa05cacea3527681d76 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Thu, 30 May 2024 10:37:49 +0200 Subject: [PATCH] Use correct source for container image The workflow for building the test container images is triggered by `pull_request_target` which means that we explicitly need to state that we want to check out the pull request source code and not what is already in the repository. --- .github/workflows/deploy-container-image.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-container-image.yaml b/.github/workflows/deploy-container-image.yaml index 4bd56bf9ee..69e36f6f86 100644 --- a/.github/workflows/deploy-container-image.yaml +++ b/.github/workflows/deploy-container-image.yaml @@ -18,8 +18,9 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 - - - run: echo "github.actor = ${{ github.actor }}" + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Log in to the container registry uses: docker/login-action@v3