From 1ac24ee21e0088fdb71029f76a837f6cf24deb0e Mon Sep 17 00:00:00 2001 From: Varun Sharma Date: Sun, 2 Feb 2025 15:57:28 -0800 Subject: [PATCH] Update toc-tou.yml --- .github/workflows/toc-tou.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/toc-tou.yml b/.github/workflows/toc-tou.yml index 8e0f8031..50ca25cb 100644 --- a/.github/workflows/toc-tou.yml +++ b/.github/workflows/toc-tou.yml @@ -48,11 +48,12 @@ jobs: sleep 120 # SECURE: Gets exactly the code that was approved - - name: Checkout PR (Secure) + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Show what we got run: | - gh pr checkout ${{ github.event.pull_request.number }} --commit ${{ github.event.pull_request.head.sha }} - - # Show what we got echo "Commit we got:" git rev-parse HEAD echo "Content of README.md:"