diff --git a/.github/workflows/push-tag-create-release.yml b/.github/workflows/push-tag-create-release.yml index ff438e3ffc11..f853f9e03a94 100644 --- a/.github/workflows/push-tag-create-release.yml +++ b/.github/workflows/push-tag-create-release.yml @@ -86,12 +86,18 @@ jobs: - name: Check out tag from push if: github.event_name == 'push' - run: | - git checkout ${{ github.ref }} + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 + with: + ref: ${{ github.ref }} + fetch-depth: 0 # all history + persist-credentials: false - name: Check out tag from manual input if: github.event_name == 'workflow_dispatch' - run: | - git checkout refs/tags/${{ github.event.inputs.tag }} + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 + with: + ref: refs/tags/${{ github.event.inputs.tag }} + fetch-depth: 0 # all history + persist-credentials: false # Generate release reports - name: Create release reports (manifests)