A neon cybersecurity dashboard flags a suspicious password in a checklist and routes it through a protective shield.
GitHub has extended secret scanning to GitHub Actions workflow logs. GitHub's documentation says detection of secrets in these logs is in public preview and subject to change. CI output has long been a quiet place for credentials to leak. Until now, scanning it meant running your own tooling or buying a third-party product. This preview gives eligible enterprises a built-in option, with some significant limits.

A neon cybersecurity dashboard flags a suspicious password in a checklist and routes it through a protective shield. What GitHub announced​

GitHub's changelog says secret scanning now covers Actions workflow logs. It already covered issues, wikis, discussions and pull requests. The scan runs after a workflow run completes. GitHub checks the logs for provider patterns and puts any findings in the repository's secret scanning alert list. Each finding links back to the workflow log. GitHub also says validity checks run for supported secret types. Alerts stay available even if the logs are later deleted.

The documentation adds triage detail. One alert can reference multiple locations if the same secret appeared across several runs or jobs. Each location links to the workflow file and the log line where the secret was printed. The alert has no inline preview of the log content. You still need access to the original log to see the context. If the log has been deleted, you will have the alert and its metadata but not the surrounding output.

Who can turn it on​

The preview is for enterprises on GitHub Enterprise Cloud with GitHub Secret Protection or GitHub Advanced Security. That includes enterprises with data residency on GHE.com. It is off by default, and only enterprise owners can enable it.

To enable it:

  1. Go to your enterprise, for example from the Enterprises page on GitHub.com.
  2. Click Policies at the top of the page.
  3. Click Advanced Security.
  4. Under Secret scanning for Actions workflow logs, open the All repositories dropdown and choose Enabled.

Once enabled, GitHub scans each new workflow run after it completes, for repositories where secret scanning is on. It does not scan logs from past runs. The policy therefore has no effect on repositories without secret scanning enabled.

A success check is simple, though GitHub's materials don't describe one. After enabling the policy, wait for new workflow runs to finish. Then watch the secret scanning alerts list of a repository that has secret scanning on. Alerts from logs should appear there with the log link described above.

The limits that matter​

  • No backfill. Only runs that complete after you enable the policy are scanned. Old logs stay unexamined, so enabling the policy does not tell you whether past runs leaked anything.
  • Provider patterns only. Secret scanning doesn't detect generic patterns, custom patterns, AI-detected secrets or values that GitHub Actions masks in the log. An internal token format with no provider pattern will pass through unnoticed. So will a generic connection string.
  • No notifications. Alerts from workflow logs don't generate notifications during the public preview, so you have to check the repository's secret scanning alerts. Nobody will be paged. A team that depends on email or webhook triggers could miss findings completely.
  • Detection after the fact. The scan happens when the run ends. A secret that was printed has already been visible in the log for some time, and in a public repository that log can be read by anyone.

The masking exclusion is the part to understand most carefully. Actions masks values it knows are secrets, meaning those registered with the workflow. Security vendors note that this protection is limited to secrets Actions recognizes. Values that are transformed or generated at runtime can still appear in plain form. Those are the cases where an independent scan has the most to offer. In this preview, though, only provider-pattern matches will be flagged.

What to do when an alert appears​

GitHub's general guidance is to rotate the affected credential immediately. Removing a secret from Git history is time-intensive and often unnecessary if you've already revoked the credential. For log alerts, the relevant follow-up is:

  1. Revoke or rotate the credential at the issuing service.
  2. Use the linked workflow file and log line to find which step printed it.
  3. Fix that step so it stops printing the value.
  4. Check other runs and jobs listed under the same alert.

Practical advice for administrators​

  • Confirm which repositories actually have secret scanning enabled. The enterprise policy only applies to those.
  • Put a recurring review of the alert list into your security routine, since there are no notifications.
  • Don't treat the preview as a replacement for avoiding secret output in the first place. Keep credentials in Actions secrets, avoid debug commands that dump the environment, and reduce what steps print.
  • Remember that the preview doesn't cover logs from before you enabled it. If you suspect past leaks, you will need another way to review them.

Context​

The motivation is easy to see. Security vendors have pointed to build logs as a real exposure path, citing the tj-actions/changed-files compromise, which exposed CI/CD credentials in logs. One StepSecurity analysis of GitHub's public monitoring feature noted that workflow run logs were not on the lists of scanned surfaces. That gap is now partly closed for enterprise customers who opt in.

GitHub's announcement and documentation don't specify runner or workflow version requirements. Availability depends on plan, license, enterprise policy and repository secret scanning status. It remains a preview, so behavior may change. Treat it as one extra detection layer: useful, but not a guarantee that every leaked credential in a log will be found.

 

References

  1. Secret scanning detects secrets in GitHub Actions workflow logs GitHub Changelog 2026-11-09T09:01:37+00:00
  2. Secret scanning - GitHub Enterprise Cloud Docs docs.github.com
  3. Enforcing policies for code security and analysis for your enterprise - GitHub Enterprise Cloud Docs docs.github.com