Skip to content

Menu

GitHub Actions Security Auditor

Paste a GitHub Actions workflow and find unpinned actions, missing permissions, script injection, risky pull_request_target checkouts and secrets in env.

Runs entirely in your browserDevOpsFree, no sign-up
Loading tool

01What is GitHub Actions Security Auditor?

GitHub Actions Security Auditor reads a workflow file and flags patterns that GitHub's own security guidance warns about. A workflow runs code with access to your repository token and secrets. One unpinned action or one unsafe expression can hand that access to someone else. Paste the YAML from .github/workflows and the findings appear at once, sorted by severity with line numbers and the matching snippet. The tool scans the file line by line. It first reads the triggers and the top-level permissions and env blocks. Then it walks each job and step, checking uses lines, run scripts and checkout settings. GitHub's secure-use guide says pinning an action to a full-length commit SHA is the only way to use it as an immutable release. So the tool checks that every third-party action is pinned to a full 40-character SHA, since tags and branches can be moved. Actions owned by actions or github are reported as low severity, others as medium. Local ./ actions are skipped, and Docker images without a sha256 digest get a low note. It flags a workflow with no top-level permissions block, because jobs then get the default GITHUB_TOKEN permissions, which may include write access. It also flags permissions: write-all at workflow or job level as high severity. For script injection, GitHub's guide explains that expressions are expanded before the shell runs, so attacker text becomes code. The tool looks inside run steps and actions/github-script script inputs for expressions GitHub lists as untrusted. These are github.event fields ending in title, body, message, ref, label, email, name, page_name, head_ref or default_branch, plus github.head_ref. Other github.event expressions in scripts get a low note to review. When the workflow triggers on pull_request_target, it flags an actions/checkout step whose ref or repository points at the pull request head. That code would run with the base repository's secrets and a write-capable token. It also flags secrets placed in workflow-level env, where every step can read them. As an example, a step with uses: actions/checkout@v4 gets a low finding saying "v4" can be moved. A step running echo with github.event.issue.title inside the script gets a high finding. The suggested fix is to set the value as an env variable and reference that variable instead. The tool is line based, not a full YAML parser. YAML anchors, flow-style steps and unusual layouts can be missed, and it cannot see reusable workflows or composite actions you call. A clean result means these checks passed, not that the workflow is safe. Nothing leaves your browser.

Developers, DevOps engineers and security reviewers who maintain or review GitHub Actions workflows. The tool runs entirely in your browser, so your data never leaves your device.

02How to use GitHub Actions Security Auditor

  1. Open a workflow file from .github/workflows and copy its contents
  2. Paste the YAML into the input box
  3. Read the findings, starting with high severity
  4. Fix each issue, for example by moving an untrusted expression into env
  5. Paste the updated file again to confirm the findings are gone

03Worked examples

Input: on: pull_request_target ... - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - uses: some-org/labeler@main - run: echo "Title: ${{ github.event.pull_request.title }}"
Result: [high] line 13: This workflow runs on pull_request_target and checks out the pull request's code. That code then runs with the base repository's secrets and a write-capable token. ... [high] line 17: ${{ github.event.pull_request.title }} is attacker-controlled and is expanded straight into a shell script. ... [medium] line 14: some-org/labeler@main is not pinned to a full-length commit SHA ("main" can be moved). ... [low] line 11: actions/checkout@v4 is not pinned to a full-length commit SHA ("v4" can be moved). ...
The Risky triage example produces 8 findings; four are shown and messages are trimmed. Checking out the PR head under pull_request_target is the most serious one.
Input: on: issue_comment permissions: write-all ... - uses: docker://alpine:3.20 - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: script: | console.log("${{ github.event.comment.body }}")
Result: [high] line 2: permissions: write-all gives the GITHUB_TOKEN write access to every scope. Grant only the scopes this workflow needs. [high] line 12: ${{ github.event.comment.body }} is attacker-controlled and is expanded straight into a github-script script. Set it as an env variable and reference the variable instead. [low] line 8: Docker image is referenced by tag, which can be moved. Pin it with @sha256:<digest>.
Injection is caught inside github-script code as well as run steps. Three of the five findings are shown.
Input: name: CI on: [push, pull_request] permissions: contents: read jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./.github/actions/setup - run: npm test
Result: No issues found by these checks.
A read-only token, a SHA-pinned action and a local action pass every check.
Input: on: workflow_run: workflows: [CI] types: [completed] ... - uses: actions/checkout@v4 - uses: softprops/action-gh-release@v2 - run: echo "Releasing ${{ github.event.workflow_run.head_branch }}"
Result: [high] line 12: ${{ github.event.workflow_run.head_branch }} is attacker-controlled and is expanded straight into a shell script. Set it as an env variable and reference the variable instead. [medium] workflow: No top-level permissions block. Jobs without their own permissions get the repository or organization default GITHUB_TOKEN permissions, which may include write access. ... [medium] line 11: softprops/action-gh-release@v2 is not pinned to a full-length commit SHA ("v2" can be moved). ... [low] line 10: actions/checkout@v4 is not pinned to a full-length commit SHA ("v4" can be moved). ...
Branch names are attacker-controlled, so head_branch in a run step is flagged. A missing permissions block leaves the token at the repository default.

04Common use cases

  • Reviewing a pull request that adds or changes a workflow file
  • Finding actions that still use @v4 or @main tags before turning on SHA pinning
  • Checking a labeler or triage workflow that runs on pull_request_target
  • Spotting issue titles or comment bodies expanded straight into shell scripts
  • Auditing older workflows for missing permissions blocks

05Tips

  • To fix script injection, set env: TITLE: ${{ github.event.issue.title }} and use "$TITLE" in the script
  • Keep the version as a comment after a pinned SHA, for example # v4.2.2, so updates stay readable
  • Set permissions: contents: read at the top and grant more only to the jobs that need it
  • Prefer the pull_request trigger unless you really need the base repository's secrets

06Related concepts

GitHub Actions, script injection, pull_request_target, GITHUB_TOKEN, SHA pinning, supply chain security.

Frequently Asked Questions

What is GitHub Actions Security Auditor?

GitHub Actions Security Auditor is a free, browser-based developer tool on AIDToolStack. Paste a GitHub Actions workflow and find unpinned actions, missing permissions, script injection, risky pull_request_target checkouts and secrets in env. It requires no installation or sign-up and works entirely in your browser.

Is GitHub Actions Security Auditor free to use?

Yes. No sign-up, no fees and no usage cap.

Does GitHub Actions Security Auditor store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe