From 11fa4e25eb5c3516cd4e9c8bc3b67e36766683eb Mon Sep 17 00:00:00 2001 From: Matthew T <20070360+mdtro@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:55:36 -0500 Subject: [PATCH] fix: secret scanning remove fetch depth (#132) --- .github/workflows/secret-scan.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/secret-scan.yml b/.github/workflows/secret-scan.yml index fcd6f38..cc71f95 100644 --- a/.github/workflows/secret-scan.yml +++ b/.github/workflows/secret-scan.yml @@ -10,30 +10,12 @@ jobs: contents: "read" outputs: - branch: ${{ steps.fetch_depth.outputs.branch }} - depth: ${{ steps.fetch_depth.outputs.depth }} latest_release: ${{ steps.trufflehog_release.outputs.latest_release }} latest_tag_name: ${{ steps.trufflehog_release.outputs.latest_tag_name }} steps: - - name: Set fetch depth - id: fetch_depth - shell: bash - run: | - if [ "${{ github.event_name }}" == "push" ]; then - echo "depth=$(($(jq length <<< '${{ toJson(github.event.commits) }}') + 2))" >> "$GITHUB_OUTPUT" - echo "branch=${{ github.ref_name }}" >> "$GITHUB_OUTPUT" - fi - if [ "${{ github.event_name }}" == "pull_request" ]; then - echo "depth=$((${{ github.event.pull_request.commits }}+2))" >> "$GITHUB_OUTPUT" - echo "branch=${{ github.event.pull_request.head.ref }}" >> "$GITHUB_OUTPUT" - fi - - name: Checkout Code uses: actions/checkout@v4 - with: - ref: ${{ steps.fetch_depth.outputs.branch }} - fetch-depth: ${{ steps.fetch_depth.outputs.depth }} - name: Install Cosign uses: sigstore/cosign-installer@v3.5.0