Ensure buildah job checks out pull request changes (#1656)

With the change to using pull_request_target, need to ensure the buildah
job also checks out the PR contents.
This commit is contained in:
Darragh Bailey 2022-11-03 18:20:44 +00:00 committed by GitHub
parent 1ff551e1a5
commit 87131a171f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,9 +27,17 @@ jobs:
steps:
-
name: Checkout
if: ${{ ! startsWith(github.event_name, 'pull_request') }}
uses: actions/checkout@v3
with:
fetch-depth: 0
-
if: startsWith(github.event_name, 'pull_request')
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
-
name: Build with buildah
run: buildah bud .