Safeguard
Security Guides•

What does GitHub secret scanning cover, and what is left to you?

GitHub secret scanning covers git history, issues, PRs, discussions, wikis, and gists. Workflow logs are not listed. Gaps and how to cover them.

Safeguard Security Team
4 min read

GitHub secret scanning checks the full git history on all branches, plus issues, pull request titles, descriptions and comments, discussions, wikis, and secret gists. Its overview page does not list workflow run logs. So logs, other CI systems, artifacts, and chat tools remain your job to cover with other controls.

What it scans

GitHub's overview says secret scanning covers the entire Git history on all branches of a repository for hardcoded credentials, and rescans periodically as new secret types are added. It also covers non-code content: issue descriptions and comments including historical issues, pull request titles, descriptions, and comments, GitHub Discussions, wikis, and secret gists.

When a partner pattern is detected, GitHub notifies the provider so it can act, for example by revoking the credential. Partner secrets are reported directly to the provider and are not displayed in your repository alerts. That helps when a provider supports it, but it is not a substitute for knowing about your own leaks.

Availability

Repository typeAvailability, per GitHub's page
PublicRuns automatically for free
Organization owned private and internalAvailable with GitHub Secret Protection on GitHub Team or Enterprise Cloud
User ownedAvailable on Enterprise Cloud with Enterprise Managed Users, or Enterprise Server with Secret Protection

Other features the page lists include validity checks, custom and generic patterns, and AI detected secrets. Check what your plan actually includes before depending on any of these.

What the page does not mention

The overview does not mention workflow run logs, and it does not describe push protection. Do not assume either is covered based on this page. Check the dedicated documentation for your plan before you rely on them.

That matters because CI logs are where secrets often leak in practice. GitHub's secure use guidance says redaction happens on the runner and only applies to secrets used in that job, so you should not assume every exposure is masked. Error output from tools can print credentials.

Gaps and how to cover them

Where secrets leakCover it with
Workflow logs and artifactsManual and scheduled log review, short retention, and a rule to delete the log and rotate on any hit
Other CI systemsThat system's masking and scanning features plus periodic review
Chat and ticketsPolicy, plus a response runbook for pasted secrets
Container images and build outputsScan images and artifacts before publishing
Developer machinesPre-commit checks and training

Steps to build a layered setup

  1. Turn on secret scanning wherever your plan offers it, and route alerts to a named owner.
  2. Treat every alert as a live credential until proven otherwise: revoke or rotate first.
  3. GitHub recommends rotating exposed credentials right away, since rewriting history is time intensive and often unnecessary once the credential is revoked.
  4. Add a check of CI logs after test runs, especially for error output.
  5. Scan build artifacts and images for credentials before they are published.
  6. Use short lived credentials, so a missed leak expires on its own.
  7. Track time from detection to rotation as a metric.

Quick check

If secret scanning is on, can I stop worrying about logs?

No. The overview page does not list workflow logs among scanned locations. Review logs separately and keep credentials short lived.

Should I rewrite git history after a leak?

Rotate first. GitHub's guidance says rewriting is often unnecessary once the credential is revoked.

Safeguard asset discovery and SBOM and dependency scanning help you see what is in your repositories and builds, and you can run a free scan at gold.safeguard.sh/scan.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.