fix(ci): split up checkout steps for push vs. pull request (#3911)

This commit is contained in:
Gabe Kangas
2024-09-05 13:50:59 -07:00
committed by GitHub
parent 90b70612c9
commit 89a33ea4e3
15 changed files with 132 additions and 31 deletions

View File

@@ -36,8 +36,15 @@ jobs:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
- name: Checkout repository
- name: Check out pull request code
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Check out repository code
uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: actions/setup-go@v5
with: