From 3b541856cc84e58d39ee6124c003ae7be42f8247 Mon Sep 17 00:00:00 2001 From: Nick Banks Date: Thu, 14 Sep 2023 10:36:07 -0400 Subject: [PATCH] Explicitly Set Checkout Repository (#3852) --- .github/workflows/build-reuse-darwin-framework.yml | 14 ++++++++++++++ .github/workflows/build-reuse-unix.yml | 7 +++++++ .github/workflows/build-reuse-win.yml | 7 +++++++ .github/workflows/build-reuse-winkernel.yml | 7 +++++++ 4 files changed, 35 insertions(+) diff --git a/.github/workflows/build-reuse-darwin-framework.yml b/.github/workflows/build-reuse-darwin-framework.yml index 9c66e204bd..451dbc68f9 100644 --- a/.github/workflows/build-reuse-darwin-framework.yml +++ b/.github/workflows/build-reuse-darwin-framework.yml @@ -3,6 +3,10 @@ name: Build Darwin Universal on: workflow_call: inputs: + ref: + required: false + default: '' + type: string config: required: false default: 'Release' @@ -35,6 +39,7 @@ jobs: arch: [x64, arm64] uses: ./.github/workflows/build-reuse-unix.yml with: + ref: ${{ inputs.ref }} config: ${{ inputs.config }} plat: ${{ matrix.plat }} os: macos-12 @@ -49,6 +54,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + with: + repository: microsoft/msquic + ref: ${{ inputs.ref }} - name: Download Build Artifacts (x64) uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: @@ -83,6 +91,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + with: + repository: microsoft/msquic + ref: ${{ inputs.ref }} - name: Download Build Artifacts (x64) uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: @@ -104,6 +115,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + with: + repository: microsoft/msquic + ref: ${{ inputs.ref }} - name: Download Build Artifacts (iOS x64) uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: diff --git a/.github/workflows/build-reuse-unix.yml b/.github/workflows/build-reuse-unix.yml index a3f4c04eb9..b02f23e8bf 100644 --- a/.github/workflows/build-reuse-unix.yml +++ b/.github/workflows/build-reuse-unix.yml @@ -5,6 +5,10 @@ name: Build Unix on: workflow_call: inputs: + ref: + required: false + default: '' + type: string config: required: false default: 'Release' @@ -81,6 +85,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + with: + repository: microsoft/msquic + ref: ${{ inputs.ref }} - name: Set ownership if: inputs.plat == 'linux' run: | diff --git a/.github/workflows/build-reuse-win.yml b/.github/workflows/build-reuse-win.yml index cd44e77dcd..9e1a141549 100644 --- a/.github/workflows/build-reuse-win.yml +++ b/.github/workflows/build-reuse-win.yml @@ -5,6 +5,10 @@ name: Build WinUser on: workflow_call: inputs: + ref: + required: false + default: '' + type: string config: required: false default: 'Release' @@ -70,6 +74,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + with: + repository: microsoft/msquic + ref: ${{ inputs.ref }} - name: Install Perl uses: shogo82148/actions-setup-perl@35426a57f184a35daee329bb17ae49332ff8a422 with: diff --git a/.github/workflows/build-reuse-winkernel.yml b/.github/workflows/build-reuse-winkernel.yml index 43bf5e691f..afc66bfe7a 100644 --- a/.github/workflows/build-reuse-winkernel.yml +++ b/.github/workflows/build-reuse-winkernel.yml @@ -5,6 +5,10 @@ name: Build WinKernel on: workflow_call: inputs: + ref: + required: false + default: '' + type: string config: required: false default: 'Release' @@ -55,6 +59,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + with: + repository: microsoft/msquic + ref: ${{ inputs.ref }} - name: Prepare Machine shell: pwsh run: scripts/prepare-machine.ps1 -ForBuild -ForKernel