b2KIT

GitHub Actions Security Checker

Analyze GitHub Actions workflows for security risks: script injection, unpinned actions, and secret exposure.

Tested tool guide Tested browser tools Checked August 16, 2026

What GitHub Actions Security Checker does and how it behaves

Paste a GitHub Actions workflow to check for three risk classes: untrusted values inserted into scripts, action dependencies referenced by mutable names, and uses of secrets that deserve exposure review. The checker relates findings to the relevant workflow text so you can inspect the reported construct. A clean result is not proof that a workflow is secure. It cannot establish who controls every input, whether a referenced action is trustworthy, or what commands eventually run on a particular runner.

How the result is produced

1

Expression and script review

The checker examines workflow commands for GitHub expression substitutions that may place event or context data directly into executable script text. This matters when values such as issue titles, branch names, or pull request metadata can contain shell syntax. A report identifies a potential injection path; deciding whether it is exploitable still requires checking the event trigger, value source, selected shell, quoting, and surrounding command.

2

Action and secret review

Action references are checked for mutable selectors such as branches or version tags instead of a complete commit SHA. Secret references are highlighted where their values enter commands, environments, or action inputs and could cross a trust boundary. These checks answer different questions: pinning constrains which action revision runs, while secret review concerns where sensitive values can travel during a job.

Good uses

  • Review a pull request that changes files under .github/workflows before allowing the modified automation to run with repository permissions or secrets.
  • Audit an existing workflow for expressions embedded in run blocks, especially workflows triggered by pull requests, issues, comments, or other events containing contributor-controlled text.
  • Find third-party uses entries that rely on tags or branches, then identify which dependencies need commit-SHA pinning and separate trust review.

Limits and checks

  • A script-injection warning indicates that data reaches script text, not that every possible value will execute a command. Shell choice, quoting, trigger restrictions, and the source of the expression determine exploitability.
  • A full commit SHA prevents a reference from silently following a moved tag or branch, but it does not prove that the pinned action revision is benign, maintained, or free of vulnerabilities.
  • A secret warning does not prove that a secret appears in logs. GitHub may mask registered secret values, while transformations, artifacts, network requests, subprocesses, and untrusted actions can create exposure paths that simple masking does not resolve.

Common questions

Does the checker execute my workflow or contact GitHub?

No. It reviews the workflow text in the browser and does not run jobs, resolve action repositories, inspect repository settings, or upload the pasted YAML. Consequently, it cannot observe runtime-generated commands, action behavior, runner contents, organization policies, or the actual values and provenance of event fields. Treat its output as static review findings.

Does a result with no findings mean the workflow is safe?

No. The reported categories do not cover every GitHub Actions risk. Review permissions, trigger combinations, checkout behavior, reusable workflows, third-party code, self-hosted runners, environment protection, artifact handling, and credential lifetime separately. The checker is useful for locating specific patterns, but repository context and the behavior of every executed dependency remain part of the security decision.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools