Use when a team needs open-source secret scanning on commits and in CI, or is adopting it on a repo with existing leaks: gitleaks git, dir and stdin scans, custom rules and allowlists in .gitleaks.toml, pre-commit and GitHub Action setup, baselines, and TruffleHog live verification.
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
The skill exposes the agent to untrusted, user-generated content from public third-party sources, creating a risk of indirect prompt injection. This includes browsing arbitrary URLs, reading social media posts or forum comments, and analyzing content from unknown websites.
The required CI workflow (Step 7, lines 223-239) scans every commit in a pull request's base..head range on each PR, so outsider-submitted PR diffs are fed automatically into the scan without the agent selecting any specific item.
github.com (PR diff content)
domain · 4 sites
The scanner flagged the CI workflow example as fetching outsider PR diffs, but this is documentation showing users how to configure their own repository's CI to scan their own PRs - the plugin itself does not fetch or act on third-party content at runtime.
SKILL.md
237
--log-opts="${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}"
SKILL.md
231
gitleaks (every commit in the PR)
SKILL.md
232
uses: actions/checkout@v5
SKILL.md
233
with: { fetch-depth: 0 }
The skill fetches instructions or code from an external URL at runtime, and the fetched content directly controls the agent’s prompts or executes code. This dynamic dependency allows the external source to modify the agent’s behavior without any changes to the skill itself.
The `zricethezav/gitleaks:latest` Docker image is pulled and run during setup, and it is published under an individual maintainer's personal account rather than a first-party gitleaks organization account, so it is unofficial but reputable (common tier), while the other fetches (gitleaks and trufflesecurity GitHub repos, actions, pre-commit revs, and the TruffleHog install script) are first-party vendor sources and therefore strong.
zricethezav/gitleaks:latest
dependency · 2 sites
The documentation explicitly instructs users to pull and run the zricethezav/gitleaks:latest Docker image, which is published under an individual maintainer's personal account rather than the official gitleaks organization.
SKILL.md
57
docker pull zricethezav/gitleaks:latest
SKILL.md
58
docker run -v ${PWD}:/path zricethezav/gitleaks:latest git /path