diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53d4b6fe..64fa4f84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,10 @@ jobs: steps: - - name: Checkout Source + - name: Checkout uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} if: ${{ github.repository_owner == 'puppetlabs' }} - name: Activate Ruby 2.7 @@ -61,8 +63,10 @@ jobs: FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' steps: - - name: Checkout Source + - name: Checkout uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Activate Ruby 2.7 uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 4878d009..da63b3ab 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -21,8 +21,10 @@ jobs: steps: - - name: Checkout Source + - name: Checkout uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} if: ${{ github.repository_owner == 'puppetlabs' }} - name: Activate Ruby 2.7 @@ -60,8 +62,10 @@ jobs: FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' steps: - - name: Checkout Source + - name: Checkout uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Activate Ruby 2.7 uses: ruby/setup-ruby@v1