From 49ddc3383df4cefc04337a2ae784f57ce2a2c699 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Wed, 29 May 2024 13:38:07 -0400 Subject: [PATCH] clone repo first --- .github/workflows/handler-test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/handler-test.yml b/.github/workflows/handler-test.yml index f307794..88c7a80 100644 --- a/.github/workflows/handler-test.yml +++ b/.github/workflows/handler-test.yml @@ -19,6 +19,13 @@ jobs: working-directory: ./tests/public-dns steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} + ref: ${{ github.event.client_payload.pull_request.head.sha }} + persist-credentials: false + - name: Create URL to the run output id: vars run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID @@ -35,13 +42,6 @@ jobs: ${{ format(':link: [Action Summary Page]({0})', steps.vars.outputs.run-url) }} - - name: Checkout code - uses: actions/checkout@v2 - with: - repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} - ref: ${{ github.event.client_payload.pull_request.head.sha }} - persist-credentials: false - - name: Setup Terraform uses: hashicorp/setup-terraform@v1 with: