From 76a30edb0c0115867a434e99f28cd069d1347d4c Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Tue, 5 Nov 2024 23:42:32 +0100 Subject: [PATCH] chore: use fetch-depth: 0 to get all tags --- .github/workflows/generate-sbom.yml | 1 + .github/workflows/publish.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/generate-sbom.yml b/.github/workflows/generate-sbom.yml index 2fe6f67..024b484 100644 --- a/.github/workflows/generate-sbom.yml +++ b/.github/workflows/generate-sbom.yml @@ -23,6 +23,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: + fetch-depth: 0 ref: ${{ github.event.inputs.version }} - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fa68ba0..fb41885 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,6 +30,8 @@ jobs: release-version: ${{ steps.context.outputs.RELEASE_VERSION }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + fetch-depth: 0 - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: python-version: ${{ env.PYTHON_VERSION }} @@ -99,6 +101,7 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: + fetch-depth: 0 ref: ${{ needs.prepare.outputs.release-tag }} - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0