Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Pin GitHub Actions to SHA digests (#4985)
Bryan Beverly36f6f697079e
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex d4c58fbd5..9770a26a6 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@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- name: Install Go- uses: actions/setup-go@v6+ uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"# Initializes the CodeQL tools for scanning.- name: Initialize CodeQL- uses: github/codeql-action/init@v4+ uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # 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@v4+ uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4diff --git a/.github/workflows/detector-corpora-test.yml b/.github/workflows/detector-corpora-test.ymlindex 265eb3787..4a7b4ec12 100644--- a/.github/workflows/detector-corpora-test.yml+++ b/.github/workflows/detector-corpora-test.yml@@ -108,7 +108,7 @@ jobs:- name: Configure AWS credentialsif: steps.detect.outputs.any_changed == 'true'- uses: aws-actions/configure-aws-credentials@ec61189d14ec14c8efccab744f656cffd0e33f37 # v6+ uses: aws-actions/configure-aws-credentials@acca2b1b2070338fb9fd1ca27ecee81d687e58e5 # v6with:aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}diff --git a/.github/workflows/detector-tests.yml b/.github/workflows/detector-tests.ymlindex cf78cc5f5..fba14001a 100644--- a/.github/workflows/detector-tests.yml+++ b/.github/workflows/detector-tests.yml@@ -14,13 +14,13 @@ jobs:contents: "read"id-token: "write"steps:- - uses: actions/checkout@v6- - uses: actions/setup-go@v6+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6- name: Install gotestsum- uses: jaxxstorm/[email protected] # immutable release; no rolling @v3 tag+ uses: jaxxstorm/action-install-gh-release@25e24d2d23ae098373794ef1d6faecb48ee52da8 # v3.0.0with:repo: gotestyourself/gotestsum- - uses: rwx-research/setup-captain@v1+ - uses: rwx-research/setup-captain@f761ee3671e4c027299f8a5842a53fba8ddd8e37 # v1- name: Test Gorun: |export CGO_ENABLED=1diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex c0d73e468..b571ce9e1 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -15,12 +15,12 @@ jobs:name: golangci-lintruns-on: ubuntu-lateststeps:- - uses: actions/checkout@v6- - uses: actions/setup-go@v6+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"- name: golangci-lint- uses: golangci/golangci-lint-action@v9+ uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9with:# NOTE: Version and args must match scripts/lint.shversion: v2.11.4@@ -29,8 +29,8 @@ jobs:name: man-page-stalenessruns-on: ubuntu-lateststeps:- - uses: actions/checkout@v6- - uses: actions/setup-go@v6+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"- name: Regenerate man page@@ -48,7 +48,7 @@ jobs:image: returntocorp/semgrepif: (github.actor != 'dependabot[bot]')steps:- - uses: actions/checkout@v6+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- run: semgrep --config=hack/semgrep-rules/detectors.yaml pkg/detectors/checksecretparts:# Reports detector packages that construct detectors.Result without@@ -56,8 +56,8 @@ jobs:name: checksecretpartsruns-on: ubuntu-lateststeps:- - uses: actions/checkout@v6- - uses: actions/setup-go@v6+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6+ - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"- name: Run checksecretpartsdiff --git a/.github/workflows/performance.yml b/.github/workflows/performance.ymlindex a2c9d2c5a..c449b326c 100644--- a/.github/workflows/performance.yml+++ b/.github/workflows/performance.yml@@ -11,13 +11,13 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout code- uses: actions/checkout@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6with:fetch-depth: 0ref: ${{ github.head_ref }}- name: Install Go- uses: actions/setup-go@v6+ uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"@@ -54,7 +54,7 @@ jobs:echo PREVIOUS_TAG=$(cat previous_tag.txt) >> $GITHUB_ENV- name: Checkout code- uses: actions/checkout@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6with:fetch-depth: 0ref: ${{ env.PREVIOUS_TAG }}diff --git a/.github/workflows/release-bot.yml b/.github/workflows/release-bot.ymlindex 594d6143a..2ab2688f1 100644--- a/.github/workflows/release-bot.yml+++ b/.github/workflows/release-bot.yml@@ -14,12 +14,12 @@ jobs:steps:- name: Login to GCPid: auth- uses: "google-github-actions/auth@v3"+ uses: "google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093" # v3with:credentials_json: ${{ secrets.GCP_SA_TRUFFLE_RELEASE_BOT }}- name: Login to GAR- uses: docker/login-action@v4+ uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4with:registry: us-central1-docker.pkg.devusername: _json_keydiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 7c9fd27ad..93a5b9b35 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -18,24 +18,24 @@ jobs:steps:# Setup steps - no external side effects.- name: Checkout- uses: actions/checkout@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6with:fetch-depth: 0- name: Set up QEMU- uses: docker/setup-qemu-action@v4+ uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4- name: Docker Login to DockerHub- uses: docker/login-action@v4+ uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}- name: Docker Login to GitHub Container Registry- uses: docker/login-action@v4+ uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4with:registry: ghcr.iousername: ${{ github.repository_owner }}password: ${{ secrets.GITHUB_TOKEN }}- name: Set up Go- uses: actions/setup-go@v6+ uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"- name: Cosign install@@ -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@v7+ uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7with:distribution: goreleaser-proversion: latestdiff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.ymlindex 345fdf4a3..9ebd9e781 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@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6with:fetch-depth: 0ref: ${{ github.head_ref }}diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.ymlindex 2ef1cc2d0..7ff9a6077 100644--- a/.github/workflows/smoke.yml+++ b/.github/workflows/smoke.yml@@ -8,9 +8,9 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout code- uses: actions/checkout@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- name: Install Go- uses: actions/setup-go@v6+ uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"- name: Smoke@@ -23,9 +23,9 @@ jobs:timeout-minutes: 5steps:- name: Checkout code- uses: actions/checkout@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- name: Install Go- uses: actions/setup-go@v6+ uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"- name: Run trufflehogdiff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex ae51d3dde..7c93bf86a 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -18,13 +18,13 @@ jobs:id-token: "write"steps:- name: Checkout code- uses: actions/checkout@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- name: Install Go- uses: actions/setup-go@v6+ uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"- id: "auth"- uses: "google-github-actions/auth@v3"+ uses: "google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093" # v3with:workload_identity_provider: "projects/811013774421/locations/global/workloadIdentityPools/github-pool/providers/github-provider"service_account: "[email protected]"@@ -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@main+ uses: buildpulse/buildpulse-action@d4d8e00c645a2e3db0419a43664bbcf868080234 # 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@v6+ uses: mikepenz/action-junit-report@3a81627bfac62268172037048872e8ebd4207e6d # v6if: success() || failure() # always run even if the previous step failswith:report_paths: "tmp/test-results/*.xml"@@ -60,9 +60,9 @@ jobs:contents: "read"steps:- name: Checkout code- uses: actions/checkout@v6+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6- name: Install Go- uses: actions/setup-go@v6+ uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6with:go-version: "1.25"- name: Test