Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Update github-actions (#5036)
renovate[bot]076331ca6b8d
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex 9770a26a6..7092f4ea4 100644--- a/.github/workflows/codeql-analysis.yml+++ b/.github/workflows/codeql-analysis.yml@@ -38,14 +38,14 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6- name: Install Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"# Initializes the CodeQL tools for scanning.- name: Initialize CodeQL- uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4+ uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4with:languages: ${{ matrix.language }}# If you wish to specify custom queries, you can do so here or in a config file.@@ -56,4 +56,4 @@ jobs:run: |go build .- name: Perform CodeQL Analysis- uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4+ uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4diff --git a/.github/workflows/detector-corpora-test.yml b/.github/workflows/detector-corpora-test.ymlindex 4a7b4ec12..6bd76b552 100644--- a/.github/workflows/detector-corpora-test.yml+++ b/.github/workflows/detector-corpora-test.yml@@ -25,15 +25,15 @@ jobs:pull-requests: writesteps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6with:fetch-depth: 0persist-credentials: false- name: Install Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: Install dependenciesrun: sudo apt-get install -y zstd jq@@ -108,7 +108,7 @@ jobs:- name: Configure AWS credentialsif: steps.detect.outputs.any_changed == 'true'- uses: aws-actions/configure-aws-credentials@acca2b1b2070338fb9fd1ca27ecee81d687e58e5 # v6+ uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6with:aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}@@ -121,7 +121,7 @@ jobs:- name: Restore main scan cacheid: main_scan_cacheif: steps.detect.outputs.any_changed == 'true' && steps.detect.outputs.main_csv != ''- uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5+ uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5with:path: /tmp/results-main.jsonlkey: main-scan-v1-${{ steps.merge_base.outputs.sha }}-${{ steps.detect.outputs.main_csv }}@@ -200,7 +200,7 @@ jobs:- name: Save main scan cacheif: steps.detect.outputs.any_changed == 'true' && steps.detect.outputs.main_csv != '' && steps.main_scan_cache.outputs.cache-hit != 'true'- uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5+ uses: actions/cache/save@caa296126883cff596d87d8935842f9db880ef25 # v5with:path: /tmp/results-main.jsonlkey: main-scan-v1-${{ steps.merge_base.outputs.sha }}-${{ steps.detect.outputs.main_csv }}diff --git a/.github/workflows/detector-tests.yml b/.github/workflows/detector-tests.ymlindex f7e5a7c57..5e451573c 100644--- a/.github/workflows/detector-tests.yml+++ b/.github/workflows/detector-tests.yml@@ -14,8 +14,8 @@ jobs:contents: "read"id-token: "write"steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6+ - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6- name: Install gotestsumuses: jaxxstorm/action-install-gh-release@25e24d2d23ae098373794ef1d6faecb48ee52da8 # v3.0.0with:diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex b571ce9e1..96bec0ed3 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -15,24 +15,24 @@ jobs:name: golangci-lintruns-on: ubuntu-lateststeps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6+ - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: golangci-lint- uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9+ uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9with:# NOTE: Version and args must match scripts/lint.sh- version: v2.11.4+ version: v2.12.2args: --enable bodyclose,copyloopvar,misspell --timeout 10mman-page-staleness:name: man-page-stalenessruns-on: ubuntu-lateststeps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6+ - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: Regenerate man pagerun: make man- name: Check for staleness@@ -48,7 +48,7 @@ jobs:image: returntocorp/semgrepif: (github.actor != 'dependabot[bot]')steps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6- run: semgrep --config=hack/semgrep-rules/detectors.yaml pkg/detectors/checksecretparts:# Reports detector packages that construct detectors.Result without@@ -56,9 +56,9 @@ jobs:name: checksecretpartsruns-on: ubuntu-lateststeps:- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6+ - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: Run checksecretpartsrun: go run ./hack/checksecretparts -fail ./pkg/detectorsdiff --git a/.github/workflows/performance.yml b/.github/workflows/performance.ymlindex c449b326c..af89451bd 100644--- a/.github/workflows/performance.yml+++ b/.github/workflows/performance.yml@@ -11,15 +11,15 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6with:fetch-depth: 0ref: ${{ github.head_ref }}- name: Install Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: Run Headrun: |@@ -54,7 +54,7 @@ jobs:echo PREVIOUS_TAG=$(cat previous_tag.txt) >> $GITHUB_ENV- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6with:fetch-depth: 0ref: ${{ env.PREVIOUS_TAG }}diff --git a/.github/workflows/release-bot.yml b/.github/workflows/release-bot.ymlindex 2ab2688f1..3486dde5a 100644--- a/.github/workflows/release-bot.yml+++ b/.github/workflows/release-bot.yml@@ -19,7 +19,7 @@ jobs:credentials_json: ${{ secrets.GCP_SA_TRUFFLE_RELEASE_BOT }}- name: Login to GAR- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4with:registry: us-central1-docker.pkg.devusername: _json_keydiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 93a5b9b35..9b3a6c7ad 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -18,28 +18,28 @@ jobs:steps:# Setup steps - no external side effects.- name: Checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6with:fetch-depth: 0- name: Set up QEMU- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4+ uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4- name: Docker Login to DockerHub- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Docker Login to GitHub Container Registry- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4with:registry: ghcr.iousername: ${{ github.repository_owner }}password: ${{ secrets.GITHUB_TOKEN }}- name: Set up Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: Cosign install- uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2+ uses: sigstore/cosign-installer@7e8b541eb2e61bf99390e1afd4be13a184e9ebc5 # v3.10.1- name: Install UPXrun: |sudo apt-get update@@ -64,7 +64,7 @@ jobs:# version. The release is NOT marked latest (make_latest: false), so# /releases/latest still points to the previous good release.- name: Run GoReleaser- uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7+ uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7with:distribution: goreleaser-proversion: latestdiff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.ymlindex 9ebd9e781..e0dd2d72c 100644--- a/.github/workflows/secrets.yml+++ b/.github/workflows/secrets.yml@@ -15,7 +15,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6with:fetch-depth: 0ref: ${{ github.head_ref }}diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.ymlindex 7ff9a6077..7b6b2020d 100644--- a/.github/workflows/smoke.yml+++ b/.github/workflows/smoke.yml@@ -8,11 +8,11 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6- name: Install Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: Smokerun: |set -e@@ -23,11 +23,11 @@ jobs:timeout-minutes: 5steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6- name: Install Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: Run trufflehogrun: |set -ediff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 7c93bf86a..165bf22be 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -18,11 +18,11 @@ jobs:id-token: "write"steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6- name: Install Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- id: "auth"uses: "google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093" # v3with:@@ -38,7 +38,7 @@ jobs:if: ${{ success() || failure() }} # always run this step, even if there were previous errors- name: Upload test results to BuildPulse for flaky test detectionif: ${{ !cancelled() }} # Run this step even when the tests fail. Skip if the workflow is cancelled.- uses: buildpulse/buildpulse-action@d4d8e00c645a2e3db0419a43664bbcf868080234 # main+ uses: buildpulse/buildpulse-action@0b048a4942e59de0796568d1035946e283be6b3a # mainwith:account: 79229934repository: 77726177@@ -48,7 +48,7 @@ jobs:secret: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }}tags: integration- name: Annotate test results- uses: mikepenz/action-junit-report@3a81627bfac62268172037048872e8ebd4207e6d # v6+ uses: mikepenz/action-junit-report@d9f48fc87bc235f7e214acf696ca5abc0a986f16 # v6if: success() || failure() # always run even if the previous step failswith:report_paths: "tmp/test-results/*.xml"@@ -60,10 +60,10 @@ jobs:contents: "read"steps:- name: Checkout code- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6- name: Install Go- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6+ uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6with:- go-version: "1.25"+ go-version: "1.26"- name: Testrun: make test-communitydiff --git a/scripts/lint.sh b/scripts/lint.shindex bb60c83ef..51148d2a2 100755--- a/scripts/lint.sh+++ b/scripts/lint.sh@@ -2,7 +2,7 @@set -euo pipefail# NOTE: Version and args must match .github/workflows/lint.yml-GOLANGCI_LINT_VERSION="v2.11.4"+GOLANGCI_LINT_VERSION="v2.12.2"LINT_ARGS="--enable bodyclose,copyloopvar,misspell --timeout 10m"