Files
trufflehog/.github/workflows/secrets.yml
Bryan BeverlyandCursor 36f6f69707 Pin GitHub Actions to SHA digests (#4985)
Convert all GitHub Actions uses: refs from mutable tags to immutable
SHA pins with version comments. This prevents tag-hijack supply chain
attacks while preserving version tracking for Renovate.

Part of the org-wide Dependency Strategy Unification (Step 2).

Co-authored-by: Cursor <[email protected]>
2026-05-27 14:03:37 -07:00

27 lines
580 B
YAML

name: Scan for secrets
on:
push:
tags:
- v*
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
if: ${{ github.repository == 'trufflesecurity/trufflehog' && !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Dogfood
uses: ./
id: dogfood
with:
extra_args: --results=verified