From aeb433e376dd522be8be20ff1f58f256026e1c39 Mon Sep 17 00:00:00 2001 From: laurentsimon <64505099+laurentsimon@users.noreply.github.com> Date: Tue, 14 Jun 2022 13:48:22 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Do=20not=20fetch=20all=20branches?= =?UTF-8?q?=20(#300)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * updates * updates * updates --- .github/workflows/builder_go_slsa3.yml | 6 +++--- .github/workflows/generator_generic_slsa3.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/builder_go_slsa3.yml b/.github/workflows/builder_go_slsa3.yml index be1ebf797..c0f81619b 100644 --- a/.github/workflows/builder_go_slsa3.yml +++ b/.github/workflows/builder_go_slsa3.yml @@ -96,7 +96,7 @@ jobs: - name: Checkout the repository uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4 with: - fetch-depth: 0 + fetch-depth: 1 persist-credentials: false repository: "${{ needs.detect-env.outputs.repository }}" ref: "${{ needs.detect-env.outputs.ref }}" @@ -168,7 +168,7 @@ jobs: - name: Checkout the repository uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4 with: - fetch-depth: 0 + fetch-depth: 1 persist-credentials: false # Code needed (not tested) if go-vesion is made optional. @@ -228,7 +228,7 @@ jobs: - name: Checkout the repository uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4 with: - fetch-depth: 0 + fetch-depth: 1 persist-credentials: false # Code needed (not tested) if go-vesion is made optional. diff --git a/.github/workflows/generator_generic_slsa3.yml b/.github/workflows/generator_generic_slsa3.yml index 9952e9aad..4e5889b3d 100644 --- a/.github/workflows/generator_generic_slsa3.yml +++ b/.github/workflows/generator_generic_slsa3.yml @@ -67,7 +67,7 @@ jobs: - name: Checkout the repository uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.3.4 with: - fetch-depth: 0 + fetch-depth: 1 repository: "${{ needs.detect-env.outputs.repository }}" ref: "${{ needs.detect-env.outputs.ref }}"