From 7cb2d79cdff646f9288d8011ed761da8425cae6f Mon Sep 17 00:00:00 2001 From: sd109 Date: Mon, 4 Nov 2024 09:24:06 +0000 Subject: [PATCH] Revert to pull_request_target workflow trigger This seems to be required for image build & scanning to work (e.g. [here](https://github.com/stackhpc/azimuth-llm/actions/runs/11655504230/job/32450298649#step:8:2319). We explicity check out the correct ref in chart_validation to match other workflow steps and ensure we're testing the correct version of the chart. --- .github/workflows/test-pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index b3b8f1b..bd1d8bb 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -2,7 +2,7 @@ name: Test pull request on: - pull_request: + pull_request_target: types: - opened - synchronize @@ -41,6 +41,8 @@ jobs: steps: - name: Checkout the repo uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Install Helm uses: azure/setup-helm@v4