Skip to content

Rules ​

Every finding of jactionlint carries the ID of the rule that reports it, such as unpinned-uses. This page lists every rule with its group, default level, profile, fix and options. The IDs of released versions are never renamed or reused, so you can rely on them in the configuration, in ignore comments and in CI annotations.

To find the ID of a finding, look at the end of its line in the text format, at the id field of --format json or at the ruleId of --format sarif. jactionlint --explain ID prints what a rule does and the section of the checks page that describes it.

Each rule has:

  • a group: correctness (mistakes that make a workflow fail or misbehave), security (insecure constructs), policy (good practices that are not mistakes by themselves) or style.
  • a default level: error, warn or info. Only errors make jactionlint exit with status 1, unless you pass --strict-exit.
  • a profile: the first profile that enables the rule. Each profile includes the rules of the one before it: correctness (what actionlint checks and the bug detectors of jactionlint), default (adds the security and policy rules, and applies when you configure nothing) and pedantic (adds the noisy and opinionated rules). A rule marked "only when configured" runs only when the configuration turns it on. A rule marked "only with --online" belongs to the online checks and runs with that option whatever the profile is. The profile comes from the profile key of the configuration or from --profile.
  • a fix: whether jactionlint --fix can repair its findings. --fix applies the safe fixes and --fix=unsafe the others, see Fix findings automatically.
  • a pedantic option: a few rules report their noisier findings too when the option pedantic is true. It is true under the pedantic profile and false otherwise, and rules: {<id>: {pedantic: true}} turns it on for one rule.

The rules of the security, policy and style groups skip a job or a step whose if: is the literal false, because it never runs. The rules of the correctness group still look at it: a mistake in it breaks the file whether it runs or not.

yaml
# .github/jactionlint.yaml
profile: pedantic
rules:
  unpinned-uses: warn # lower the level
  require-shell: off # turn a rule off
IDSummaryGroupDefault levelProfileFixable
action-release-cooldownAn action is pinned to a version released less than the cooldown ago.securitywarnonly with --online, and only when rules has an entry for it (opt-in)no
action-syntaxThe action metadata does not follow the syntax of action.yml.correctnesserrorcorrectnessno
actions-lockThe Actions lock file does not match the workflows: an action is missing from it, an entry is stale or malformed.securityerrordefaultno
actions-lock-driftA pin of the Actions lock file no longer matches GitHub: the repository changed owner or was replaced, a version tag moved, or the commit is not in the history of the repository.securityerroronly with --onlineno
adhoc-packagesA package is installed by name with npm, yarn, pnpm, bun, aube, gem or bundle add outside of a lock file.securityerrordefaultno
agentic-actionsAn AI agent action can be steered by outsiders, runs on code of a pull request, or has its safeguards turned off.securityerrordefaultno
anonymous-definitionA workflow has no top-level name:.policywarnpedanticyes
archived-usesAn action or reusable workflow is in an archived repository.securitywarnonly with --onlineno
argument-injectionFree text that an outsider writes is expanded into the program text or the options of sed, awk, find, curl, wget and git clone.securitywarnpedanticno
artipackedactions/checkout persists the GITHUB_TOKEN credential in the git config.securityerrordefaultyes
background-step-not-waitedOutputs or results of a background step are read before a wait step covers it.correctnesserrorcorrectnessno
bot-conditionsA condition trusts a bot by github.actor, which can be spoofed.securityerrordefaultyes
cache-poisoningA cache is restored in a release job or written by a privileged trigger. With the option pedantic, a tag that only starts checks and a branch filter that names a release branch among others count as releases too, and a cache that saves a file with credentials is reported.securityerrordefaultno
checkout-static-credentialsactions/checkout is given an SSH key or a token that does not expire.securityerrordefaultno
command-injectionInput that an outsider controls is run as code by a script after it was moved to an environment variable: eval, sh -c, a variable as a command, a pipe into a shell, an inline program, child_process in github-script.securitywarnpedanticno
comment-trigger-authorizationA job of a comment-triggered workflow is started by the text of the comment and nothing checks who wrote it.securitywarnpedanticno
concurrency-cancels-prsA concurrency group that cancels runs is shared by all pull requests, so unrelated pull requests cancel each other.correctnesserrordefaultno
concurrency-cancels-releasecancel-in-progress can cancel a release or a deployment which is still running.correctnesserrordefaultyes
concurrency-deadlockThe concurrency group of a workflow is the same as the group of a local reusable workflow it calls, so GitHub detects a deadlock and cancels the run.correctnesserrorcorrectnessno
concurrency-limitsA workflow does not cancel superseded runs with concurrency:.policyerrordefaultyes
conflicting-action-inputsTwo inputs of a well-known action exclude each other.correctnesserrorcorrectnessno
conflicting-runner-labelsThe runner labels of a job conflict with each other.correctnesserrorcorrectnessno
constant-conditionAn if: condition is a constant expression.correctnesserrorcorrectnessno
context-availabilityA context or special function is used where it is not available.correctnesserrorcorrectnessno
continue-on-errorA job has continue-on-error: true, so its failure does not fail the workflow.policyinfopedanticno
cron-too-frequentA scheduled job runs more often than once every 5 minutes.correctnesserrorcorrectnessno
cyclic-job-needsJobs depend on each other in a cycle.correctnesserrorcorrectnessno
dangerous-triggersA workflow uses pull_request_target, workflow_run or issue_comment. With the option pedantic, also one that cannot write and uses no secret.securityerrordefaultno
dependabot-cooldownAn update in dependabot.yml has no cooldown or a cooldown shorter than the minimum.securityerrordefaultyes
dependabot-executionAn update in dependabot.yml allows insecure external code execution.securityerrordefaultyes
dependabot-missing-actions-updatedependabot.yml has no github-actions update although the repository has workflows using actions, or its github-actions updates do not cover the local composite actions that use actions.policywarnpedanticyes
dependabot-syntaxThe Dependabot configuration does not follow the syntax of dependabot.yml.correctnesserrorcorrectnessno
deprecated-action-inputA deprecated input of an action is used.correctnesserrorcorrectnessno
deprecated-commandsA deprecated workflow command such as ::set-output is used.correctnesserrorcorrectnessno
deprecated-node-runtimeA Node.js runtime that GitHub Actions removed is declared, used or selected by an environment variable.policywarnpedanticno
deprecated-runner-labelA runner label is deprecated and GitHub is going to retire it on a known date, such as macos-14.policywarnpedanticno
duplicate-job-idA job ID is defined more than once.correctnesserrorcorrectnessno
duplicate-job-needsA job ID is listed more than once in needs.correctnesserrorcorrectnessno
duplicate-keyA key is defined more than once in a mapping.correctnesserrorcorrectnessno
duplicate-step-idA step ID is not unique within its job.correctnesserrorcorrectnessno
duplicate-triggerspush and pull_request both run the workflow for the same commit.policyerrordefaultno
environment-file-redirectA script writes to GITHUB_OUTPUT or another environment file of the runner without the $, or empties it with > after it wrote to it.correctnesserrorcorrectnessyes
event-name-never-receivedgithub.event_name is compared with an event that the workflow never receives, so the comparison is always false.correctnesswarnpedanticno
excessive-permissionsThe GITHUB_TOKEN gets write access that is broader than needed.securityerrordefaultno
expired-ignoreAn entry of "ignores" in the config file has expired or is about to.policyerrorcorrectnessno
expression-syntaxA ${{ }} expression has a syntax error.correctnesserrorcorrectnessno
expression-typeA ${{ }} expression has a type error.correctnesserrorcorrectnessno
fail-fast-action-inputsAn action which passes by default when nothing was produced or found is not told to fail.correctnesswarnpedanticyes
forbidden-usesAn action or reusable workflow is not allowed or is denied by the configuration.policyerroronly when configuredno
gate-job-skipped-on-failureA job that reads the results of the jobs it needs is skipped when one of them fails.correctnesserrordefaultno
gh-without-tokenA script runs the gh command although no GH_TOKEN or GITHUB_TOKEN reaches the step, so gh stops.correctnesserrorcorrectnessno
github-appA GitHub App token (actions/create-github-app-token, tibdex/github-app-token, peter-murray/workflow-application-token-action) is issued with more access or a longer life than needed.securityerrordefaultno
github-envInput that an outsider controls, or a value that is not a literal in a workflow triggered by pull_request_target or workflow_run, is written to GITHUB_ENV or GITHUB_PATH.securityerrordefaultno
github-script-syntaxThe script of actions/github-script has a JavaScript syntax error.correctnesserrorcorrectnessno
hardcoded-container-credentialsA password for a container registry is written directly in the workflow.securityerrorcorrectnessno
hardcoded-registry-credentialsA registry in dependabot.yml has a password, token or key written in plain text.securityerrordefaultno
if-always-trueAn if: condition is always true because of the characters around ${{ }}.correctnesserrorcorrectnessno
impostor-commitA hash-pinned action uses a commit which is not part of the repository's own history (it exists only in a fork).securityerroronly with --onlineno
insecure-commandsACTIONS_ALLOW_UNSECURE_COMMANDS enables the deprecated set-env and add-path commands.securityerrordefaultyes
insecure-ssh-keyscanssh-keyscan output is trusted as the host key without verification.securityerrordefaultno
insecure-url-schemeA download uses http, ftp or git instead of https.securityerrordefaultno
insufficient-permissionsThe explicit permissions of a job do not grant what an action or command of the job needs from the GITHUB_TOKEN.correctnesserrordefaultno
invalid-activity-typeAn activity type is not available for the Webhook event.correctnesserrorcorrectnessno
invalid-cronA cron schedule has an invalid format.correctnesserrorcorrectnessno
invalid-env-var-nameAn environment variable name contains characters which are not allowed.correctnesserrorcorrectnessno
invalid-event-configAn event is configured with options it does not support.correctnesserrorcorrectnessno
invalid-event-filterAn event filter is not available for the event or conflicts with another filter.correctnesserrorcorrectnessno
invalid-function-callA built-in function is called with wrong arguments.correctnesserrorcorrectnessno
invalid-globA glob filter pattern is invalid.correctnesserrorcorrectnessno
invalid-idA job or step ID does not follow the naming convention.correctnesserrorcorrectnessno
invalid-ignore-commentAn inline ignore comment is invalid.correctnesserrorcorrectnessno
invalid-label-patternA runner label pattern in the configuration is not a valid glob.correctnesserrorcorrectnessno
invalid-local-actionA local action cannot be loaded or its metadata is invalid.correctnesserrorcorrectnessno
invalid-local-workflowA local reusable workflow cannot be loaded or is invalid.correctnesserrorcorrectnessno
invalid-parallel-stepA step is not allowed inside a parallel group or refers to a wrong step.correctnesserrorcorrectnessno
invalid-permissionsA permission scope or its value is invalid.correctnesserrorcorrectnessno
invalid-shell-nameA shell name is not available on the runner.correctnesserrorcorrectnessno
invalid-timezoneA timezone of a schedule is not a valid IANA timezone name.correctnesserrorcorrectnessno
invalid-usesA uses: value does not follow the format of an action or a Docker image.correctnesserrorcorrectnessno
invalid-workflow-callA reusable workflow call does not follow the format of a reusable workflow.correctnesserrorcorrectnessno
invalid-workflow-call-inputAn input of the workflow_call event is invalid.correctnesserrorcorrectnessno
invalid-workflow-dispatch-inputAn input of the workflow_dispatch event is invalid.correctnesserrorcorrectnessno
invisible-charactersA file contains an invisible or bidirectional control character which hides what the text says.securityerrordefaultyes
known-vulnerable-actionsAn action version is affected by a published GitHub security advisory.securityerroronly with --onlineno
local-action-checkoutA local action is used before any step checks out the repository.correctnesserrorcorrectnessno
macos-gnu-flagsA command at run: has a GNU-only option and the job runs on macOS, which has the BSD command.correctnesswarnpedanticno
malformed-expression-delimitersText such as ${ github.ref }, $ {{ x }} or {{ github.sha }} is meant to be an expression but is not one. With the option pedantic, so is a shell variable in the input of an action.correctnesserrorcorrectnessyes
matrix-duplicate-valueA matrix has a duplicate value.correctnesserrorcorrectnessno
matrix-invalid-excludeAn exclude entry of a matrix does not match the matrix.correctnesserrorcorrectnessno
max-run-linesA run: script has more lines than allowed.styleerrorpedanticno
merge-keyThe YAML merge key << is used, which GitHub Actions does not support.correctnesserrorcorrectnessno
misfeatureA misfeature of GitHub Actions is used: the pip-install input of setup-python or the cmd shell. With the option pedantic, a shell that GitHub does not document too.securityerrordefaultno
missing-action-inputA required input of an action is not specified.correctnesserrorcorrectnessno
missing-permissionsNeither the workflow nor the job sets permissions:.policyerrordefaultyes
missing-timeoutA job does not set timeout-minutes.policyerrordefaultyes
missing-version-commentA hash-pinned action has no comment which names its version.policywarnpedanticyes
missing-workflow-inputA required input of a reusable workflow is not specified.correctnesserrorcorrectnessno
missing-workflow-secretA required secret of a reusable workflow is not passed.correctnesserrorcorrectnessno
multiline-plain-runA run: is written over several lines without |, so YAML folds the lines into one command.correctnesserrorcorrectnessyes
mutable-runner-labelA runner label is an alias that GitHub moves to newer images, such as ubuntu-latest.policywarnpedanticyes
obfuscationA path at uses: or an expression is written in an obfuscated way.securityerrordefaultyes
outdated-action-runnerAn action runs on a runtime which GitHub Actions no longer supports.correctnesserrorcorrectnessno
output-clobberingInput that an outsider controls is written to GITHUB_OUTPUT as a record, so a line break in it sets the other outputs of the step.securitywarnpedanticno
overprovisioned-secretsAn expression uses the whole secrets context.securityerrordefaultno
pipeline-without-pipefailA failing command in a pipeline of a run: script is hidden because the shell does not enable pipefail.correctnesserrordefaultyes
pyflakespyflakes reported an issue in a Python script.correctnesserrorcorrectnessno
recursive-aliasA YAML alias refers to itself.correctnesserrorcorrectnessno
ref-confusionThe ref of an action is both a branch and a tag of its repository.securitywarnonly with --onlineno
ref-version-mismatchThe version comment of a hash-pinned action does not match the pinned commit.securitywarnonly with --onlineyes
repojackingAn action or reusable workflow has an owner whose name anyone can register.securitywarnonly with --onlineno
require-expression-wrappingAn if: condition is not wrapped in ${{ }}.styleerrorpedanticno
require-shellA run: step does not set the shell explicitly.styleerrorpedanticno
required-actionsAn action listed in required-actions is not used by a workflow.policyerroronly when configuredno
secrets-inheritA reusable workflow is called with secrets: inherit.securityerrordefaultno
secrets-outside-envA job uses a secret but has no environment, or passes one to a reusable workflow.securitywarnpedanticno
self-hosted-runnerA job runs on a self-hosted runner: the label self-hosted, a label of self-hosted-runner.labels or a runner group.securityinfopedanticno
self-repositoryA local action or workflow is referenced as ./path instead of $/path.securityinfopedanticyes
shell-syntaxA shell script at "run:" has a syntax error (found without shellcheck).correctnesserrordefaultno
shellcheckshellcheck reported an issue in a shell script.correctnesserrorcorrectnessno
stale-action-refsA hash-pinned action uses a commit which no tag of the repository points to.securityinfoonly with --onlineno
superfluous-actionsAn action does what a tool of the runner image does as well, such as gh release create.securityerrordefaultno
template-injectionA potentially untrusted input is expanded in a script, a container option or the prompt of an AI agent. With the option pedantic, so is any other expression.securityerrorcorrectnessyes
timeout-too-longtimeout-minutes of a job exceeds the configured maximum.policyerroronly when configuredno
typosquat-usesAn action is one typo away from a popular action of another owner.securityerrordefaultno
ubuntu-slim-limitsA job on ubuntu-slim has a container, services or a Docker container action, which the single-CPU runner cannot run. With the option pedantic, a timeout-minutes above its limit of 15 minutes counts too.correctnesserrordefaultno
undefined-functionAn undefined function is called in an expression.correctnesserrorcorrectnessno
undefined-job-needsA job needs a job which does not exist.correctnesserrorcorrectnessno
undefined-propertyAn undefined variable or property is accessed in an expression.correctnesserrorcorrectnessno
undocumented-permissionsA permission scope above read has no comment explaining it.policyinfopedanticno
unknown-action-inputAn input which the action does not define is specified.correctnesserrorcorrectnessno
unknown-eventAn unknown Webhook event is used.correctnesserrorcorrectnessno
unknown-runner-labelA runner label is unknown, or is one that GitHub has retired.correctnesserrorcorrectnessno
unknown-workflow-inputAn input which the reusable workflow does not define is specified.correctnesserrorcorrectnessno
unknown-workflow-secretA secret which the reusable workflow does not define is passed.correctnesserrorcorrectnessno
unlocked-installcargo install runs without --locked, or npm, yarn or pnpm install without freezing a lock file that the repository has. With the option pedantic, also installs without a lock file, npm, Yarn and bun installs that run the lifecycle scripts of the dependencies (and aube installs that allow every build), and installs without a release-age cooldown.securityerrordefaultyes
unmatched-paths-filterAn entry of paths or paths-ignore matches no file of the repository.correctnesswarnpedanticno
unpinnable-actionA hash-pinned action pulls in an action or a Docker image by a tag or a branch, so its pin does not freeze what runs. Only with the option pedantic.securitywarnonly with --onlineno
unpinned-imagesA container or service image is not pinned by a digest.securityerrordefaultyes
unpinned-toolsAn action installs the newest version of its tool because no version is set or it is latest.securityerrordefaultno
unpinned-usesAn action, reusable workflow or Docker image is not pinned to a commit SHA or digest.policyerrordefaultyes
unreachable-required-checkA check listed in required-checks is reported by no job, or a trigger filter keeps its workflow from starting, so the check stays pending.correctnesserroronly when configuredno
unredacted-secretsA secret is parsed with fromJSON(), so the fields of it are not redacted in logs. With the option pedantic, also a value that a script cuts from a secret and prints without masking it.securityerrordefaultno
unsound-containsA condition uses contains() on a string literal, which also matches substrings.securityerrordefaultno
unsound-prefix-matchAn account, an owner or a repository is identified by a prefix, a suffix or a part of its name.securityerrordefaultno
unsound-ternaryThe a && b || c idiom has a falsy b so it always evaluates to c.correctnesserrorcorrectnessno
untrusted-artifactA workflow_run workflow uses an artifact of the triggering run without validating it. With the option pedantic, also one that downloads every artifact of the run.securityerrordefaultno
untrusted-checkoutA pull_request_target, workflow_run or issue_comment workflow checks out the code of a pull request and runs it, or turns off the protection of actions/checkout against the code of fork pull requests. It also reports a gate that holds at one moment (an environment, a label, the comment of a maintainer) in front of a branch that the author can still push to, and a label that survives a push. With the option pedantic, a checkout that actions/checkout refuses for a fork and a dispatch with the number of a pull request and no commit are reported too, and with the option any-checkout a checkout that nothing visibly runs.securityerrordefaultno
unused-anchorA YAML anchor is defined but never used.correctnesserrorcorrectnessno
unused-baseline-entryA baseline entry matches no finding any more, so the baseline can shrink.policyinfocorrectnessno
unused-ignoreAn ignore comment or an entry of "ignores" in the config file did not suppress anything.policyerrorpedanticyes
unused-job-outputAn output of a job is never read by another job or by a workflow_call output.policyerrordefaultno
unused-needsA needs entry is neither read by the job nor needed for the order of jobs.styleinfopedanticno
unused-workflow-inputAn input of workflow_dispatch or workflow_call is never used.policywarnpedanticno
unused-workflow-secretA secret of workflow_call is never used.policywarnpedanticno
unverified-downloadA script runs what it downloads without verifying it.securityerrordefaultno
use-trusted-publishingA package is published with a long-lived credential although the registry supports trusted publishing. With the option pedantic, also trusted publishing in a job that builds the package or has no environment, and attestations that are switched off.securityerrordefaultno
workflow-call-permissionsA caller job grants fewer permissions than a reusable workflow requires.correctnesserrorcorrectnessno
workflow-input-typeThe type of a value passed to a reusable workflow does not match its input.correctnesserrorcorrectnessno
workflow-run-namesA workflow_run event refers to a workflow which does not exist in the repository.correctnesserrorcorrectnessno
workflow-secret-scopeA secret is assigned to the workflow-level env and reaches multiple jobs. With the option job-level, also one of the env of a job that reaches its steps.securitywarnpedanticno
workflow-syntaxThe workflow does not follow the syntax of GitHub Actions workflows.correctnesserrorcorrectnessno
yaml-syntaxThe file is not valid YAML.correctnesserrorcorrectnessno

action-release-cooldown ​

An action is pinned to a version released less than the cooldown ago.

  • Group: security
  • Default level: warn
  • Profile: only with --online, and only when rules has an entry for it (opt-in)
  • Needs network access: yes (only with --online)
  • Option days (int, default 7): How many days a version must be old (at least 1). The date is the publication of its release on GitHub, else the date of its commit. The rule runs only when "rules" has an entry for it, and only with the online checks.
  • Details and examples

action-syntax ​

The action metadata does not follow the syntax of action.yml.

actions-lock ​

The Actions lock file does not match the workflows: an action is missing from it, an entry is stale or malformed.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

actions-lock-drift ​

A pin of the Actions lock file no longer matches GitHub: the repository changed owner or was replaced, a version tag moved, or the commit is not in the history of the repository.

  • Group: security
  • Default level: error
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Details and examples

adhoc-packages ​

A package is installed by name with npm, yarn, pnpm, bun, aube, gem or bundle add outside of a lock file.

agentic-actions ​

An AI agent action can be steered by outsiders, runs on code of a pull request, or has its safeguards turned off.

  • Group: security
  • Default level: error
  • Profile: default
  • Option any-trigger (bool, default false): Also report the unsafe settings of an agent (tools that allow any command, permission checks switched off) in a workflow that no outsider can trigger.
  • Details and examples

anonymous-definition ​

A workflow has no top-level name:.

archived-uses ​

An action or reusable workflow is in an archived repository.

  • Group: security
  • Default level: warn
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Details and examples

argument-injection ​

Free text that an outsider writes is expanded into the program text or the options of sed, awk, find, curl, wget and git clone.

artipacked ​

actions/checkout persists the GITHUB_TOKEN credential in the git config.

background-step-not-waited ​

Outputs or results of a background step are read before a wait step covers it.

bot-conditions ​

A condition trusts a bot by github.actor, which can be spoofed.

cache-poisoning ​

A cache is restored in a release job or written by a privileged trigger. With the option pedantic, a tag that only starts checks and a branch filter that names a release branch among others count as releases too, and a cache that saves a file with credentials is reported.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

checkout-static-credentials ​

actions/checkout is given an SSH key or a token that does not expire.

  • Group: security
  • Default level: error
  • Profile: default
  • Option secret-tokens (bool, no default): Also report a token input taken from a secret other than GITHUB_TOKEN (a personal access token). The ssh-key input is always reported. Unset, it is on under the pedantic profile and off otherwise.
  • Option allow (strings, empty by default): Names of secrets which may be given to actions/checkout (for example a deploy key).
  • Details and examples

command-injection ​

Input that an outsider controls is run as code by a script after it was moved to an environment variable: eval, sh -c, a variable as a command, a pipe into a shell, an inline program, child_process in github-script.

comment-trigger-authorization ​

A job of a comment-triggered workflow is started by the text of the comment and nothing checks who wrote it.

concurrency-cancels-prs ​

A concurrency group that cancels runs is shared by all pull requests, so unrelated pull requests cancel each other.

concurrency-cancels-release ​

cancel-in-progress can cancel a release or a deployment which is still running.

concurrency-deadlock ​

The concurrency group of a workflow is the same as the group of a local reusable workflow it calls, so GitHub detects a deadlock and cancels the run.

concurrency-limits ​

A workflow does not cancel superseded runs with concurrency:.

  • Group: policy
  • Default level: error
  • Profile: default
  • Fixable: yes
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

conflicting-action-inputs ​

Two inputs of a well-known action exclude each other.

conflicting-runner-labels ​

The runner labels of a job conflict with each other.

constant-condition ​

An if: condition is a constant expression.

context-availability ​

A context or special function is used where it is not available.

continue-on-error ​

A job has continue-on-error: true, so its failure does not fail the workflow.

  • Group: policy
  • Default level: info
  • Profile: pedantic
  • Option steps (bool, default false): Also report steps with continue-on-error: true. By default only jobs are reported.
  • Details and examples

cron-too-frequent ​

A scheduled job runs more often than once every 5 minutes.

cyclic-job-needs ​

Jobs depend on each other in a cycle.

dangerous-triggers ​

A workflow uses pull_request_target, workflow_run or issue_comment. With the option pedantic, also one that cannot write and uses no secret.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

dependabot-cooldown ​

An update in dependabot.yml has no cooldown or a cooldown shorter than the minimum.

  • Group: security
  • Default level: error
  • Profile: default
  • Fixable: yes
  • Option days (int, default 7): The minimum number of days "cooldown.default-days" must be. Defaults to 7.
  • Option default-days (int, no default): The number of days --fix writes as "cooldown.default-days". It must be at least "days". There is no default: without it findings have no fix.
  • Details and examples

dependabot-execution ​

An update in dependabot.yml allows insecure external code execution.

dependabot-missing-actions-update ​

dependabot.yml has no github-actions update although the repository has workflows using actions, or its github-actions updates do not cover the local composite actions that use actions.

dependabot-syntax ​

The Dependabot configuration does not follow the syntax of dependabot.yml.

deprecated-action-input ​

A deprecated input of an action is used.

deprecated-commands ​

A deprecated workflow command such as ::set-output is used.

deprecated-node-runtime ​

A Node.js runtime that GitHub Actions removed is declared, used or selected by an environment variable.

deprecated-runner-label ​

A runner label is deprecated and GitHub is going to retire it on a known date, such as macos-14.

duplicate-job-id ​

A job ID is defined more than once.

duplicate-job-needs ​

A job ID is listed more than once in needs.

duplicate-key ​

A key is defined more than once in a mapping.

duplicate-step-id ​

A step ID is not unique within its job.

duplicate-triggers ​

push and pull_request both run the workflow for the same commit.

environment-file-redirect ​

A script writes to GITHUB_OUTPUT or another environment file of the runner without the $, or empties it with > after it wrote to it.

event-name-never-received ​

github.event_name is compared with an event that the workflow never receives, so the comparison is always false.

excessive-permissions ​

The GITHUB_TOKEN gets write access that is broader than needed.

  • Group: security
  • Default level: error
  • Profile: default
  • Option require-workflow-permissions (bool, no default): Also report a workflow which has no top-level permissions, even when its jobs set their own. Unset, it runs under the pedantic profile.
  • Details and examples

expired-ignore ​

An entry of "ignores" in the config file has expired or is about to.

expression-syntax ​

A ${{ }} expression has a syntax error.

expression-type ​

A ${{ }} expression has a type error.

fail-fast-action-inputs ​

An action which passes by default when nothing was produced or found is not told to fail.

forbidden-uses ​

An action or reusable workflow is not allowed or is denied by the configuration.

  • Group: policy
  • Default level: error
  • Profile: only when configured
  • Option allow (strings, empty by default): Patterns of the only actions and reusable workflows which may be used, e.g. "actions/*". The rule does nothing without allow or deny.
  • Option deny (strings, empty by default): Patterns of actions and reusable workflows which must not be used.
  • Option images-allow (strings, empty by default): Glob patterns of the only container images which may be used (container:, services:, docker:// and docker run in a script), e.g. "ghcr.io/my-org/*" or "node:20". Docker Hub names can leave out the registry ("node" is "docker.io/library/node").
  • Option images-deny (strings, empty by default): Glob patterns of container images which must not be used.
  • Details and examples

gate-job-skipped-on-failure ​

A job that reads the results of the jobs it needs is skipped when one of them fails.

gh-without-token ​

A script runs the gh command although no GH_TOKEN or GITHUB_TOKEN reaches the step, so gh stops.

github-app ​

A GitHub App token (actions/create-github-app-token, tibdex/github-app-token, peter-murray/workflow-application-token-action) is issued with more access or a longer life than needed.

github-env ​

Input that an outsider controls, or a value that is not a literal in a workflow triggered by pull_request_target or workflow_run, is written to GITHUB_ENV or GITHUB_PATH.

github-script-syntax ​

The script of actions/github-script has a JavaScript syntax error.

hardcoded-container-credentials ​

A password for a container registry is written directly in the workflow.

hardcoded-registry-credentials ​

A registry in dependabot.yml has a password, token or key written in plain text.

if-always-true ​

An if: condition is always true because of the characters around ${{ }}.

impostor-commit ​

A hash-pinned action uses a commit which is not part of the repository's own history (it exists only in a fork).

  • Group: security
  • Default level: error
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Option max-branches (int, default 1000): How many branches of the action repository a commit is compared with before giving up without a verdict. Without a token each branch costs a request, so at most 100 are compared.
  • Details and examples

insecure-commands ​

ACTIONS_ALLOW_UNSECURE_COMMANDS enables the deprecated set-env and add-path commands.

insecure-ssh-keyscan ​

ssh-keyscan output is trusted as the host key without verification.

insecure-url-scheme ​

A download uses http, ftp or git instead of https.

insufficient-permissions ​

The explicit permissions of a job do not grant what an action or command of the job needs from the GITHUB_TOKEN.

  • Group: correctness
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report actions/checkout without "contents: read", which only a private repository needs. Unset, it runs under the pedantic profile.
  • Details and examples

invalid-activity-type ​

An activity type is not available for the Webhook event.

invalid-cron ​

A cron schedule has an invalid format.

invalid-env-var-name ​

An environment variable name contains characters which are not allowed.

invalid-event-config ​

An event is configured with options it does not support.

invalid-event-filter ​

An event filter is not available for the event or conflicts with another filter.

invalid-function-call ​

A built-in function is called with wrong arguments.

invalid-glob ​

A glob filter pattern is invalid.

invalid-id ​

A job or step ID does not follow the naming convention.

invalid-ignore-comment ​

An inline ignore comment is invalid.

invalid-label-pattern ​

A runner label pattern in the configuration is not a valid glob.

invalid-local-action ​

A local action cannot be loaded or its metadata is invalid.

invalid-local-workflow ​

A local reusable workflow cannot be loaded or is invalid.

invalid-parallel-step ​

A step is not allowed inside a parallel group or refers to a wrong step.

invalid-permissions ​

A permission scope or its value is invalid.

invalid-shell-name ​

A shell name is not available on the runner.

invalid-timezone ​

A timezone of a schedule is not a valid IANA timezone name.

invalid-uses ​

A uses: value does not follow the format of an action or a Docker image.

invalid-workflow-call ​

A reusable workflow call does not follow the format of a reusable workflow.

invalid-workflow-call-input ​

An input of the workflow_call event is invalid.

invalid-workflow-dispatch-input ​

An input of the workflow_dispatch event is invalid.

invisible-characters ​

A file contains an invisible or bidirectional control character which hides what the text says.

known-vulnerable-actions ​

An action version is affected by a published GitHub security advisory.

  • Group: security
  • Default level: error
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Option allow (strings, empty by default): Advisory IDs (GHSA-...) which are not reported.
  • Details and examples

local-action-checkout ​

A local action is used before any step checks out the repository.

macos-gnu-flags ​

A command at run: has a GNU-only option and the job runs on macOS, which has the BSD command.

malformed-expression-delimiters ​

Text such as ${ github.ref }, $ {{ x }} or {{ github.sha }} is meant to be an expression but is not one. With the option pedantic, so is a shell variable in the input of an action.

  • Group: correctness
  • Default level: error
  • Profile: correctness
  • Fixable: yes
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

matrix-duplicate-value ​

A matrix has a duplicate value.

matrix-invalid-exclude ​

An exclude entry of a matrix does not match the matrix.

max-run-lines ​

A run: script has more lines than allowed.

  • Group: style
  • Default level: error
  • Profile: pedantic
  • Option max (int, default 100): The maximum number of non-blank lines of a run: script.
  • Details and examples

merge-key ​

The YAML merge key << is used, which GitHub Actions does not support.

misfeature ​

A misfeature of GitHub Actions is used: the pip-install input of setup-python or the cmd shell. With the option pedantic, a shell that GitHub does not document too.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

missing-action-input ​

A required input of an action is not specified.

missing-permissions ​

Neither the workflow nor the job sets permissions:.

missing-timeout ​

A job does not set timeout-minutes.

  • Group: policy
  • Default level: error
  • Profile: default
  • Fixable: yes
  • Option default-minutes (int, no default): The timeout-minutes which --fix adds to a job. There is no default: the rule has no fix unless this is set. It is lowered to the max of timeout-too-long when that is smaller, and to 15 on a job that runs only on ubuntu-slim.
  • Option accept-step-timeouts (bool, default false): Do not report a job without timeout-minutes when every one of its steps sets timeout-minutes (ghalint's exception). Off by default: the timeout of a step does not cover setting up the job, the post steps of actions or completing the job.
  • Details and examples

missing-version-comment ​

A hash-pinned action has no comment which names its version.

missing-workflow-input ​

A required input of a reusable workflow is not specified.

missing-workflow-secret ​

A required secret of a reusable workflow is not passed.

multiline-plain-run ​

A run: is written over several lines without |, so YAML folds the lines into one command.

mutable-runner-label ​

A runner label is an alias that GitHub moves to newer images, such as ubuntu-latest.

  • Group: policy
  • Default level: warn
  • Profile: pedantic
  • Fixable: yes
  • Option pin (string-map, no default): Maps a moving label to the fixed label that --fix writes in its place, e.g. ubuntu-latest: ubuntu-24.04. There is no default: without an entry the finding has no fix.
  • Details and examples

obfuscation ​

A path at uses: or an expression is written in an obfuscated way.

outdated-action-runner ​

An action runs on a runtime which GitHub Actions no longer supports.

output-clobbering ​

Input that an outsider controls is written to GITHUB_OUTPUT as a record, so a line break in it sets the other outputs of the step.

overprovisioned-secrets ​

An expression uses the whole secrets context.

pipeline-without-pipefail ​

A failing command in a pipeline of a run: script is hidden because the shell does not enable pipefail.

pyflakes ​

pyflakes reported an issue in a Python script.

recursive-alias ​

A YAML alias refers to itself.

ref-confusion ​

The ref of an action is both a branch and a tag of its repository.

  • Group: security
  • Default level: warn
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Details and examples

ref-version-mismatch ​

The version comment of a hash-pinned action does not match the pinned commit.

  • Group: security
  • Default level: warn
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Fixable: yes
  • Details and examples

repojacking ​

An action or reusable workflow has an owner whose name anyone can register.

  • Group: security
  • Default level: warn
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Details and examples

require-expression-wrapping ​

An if: condition is not wrapped in ${{ }}.

require-shell ​

A run: step does not set the shell explicitly.

required-actions ​

An action listed in required-actions is not used by a workflow.

  • Group: policy
  • Default level: error
  • Profile: only when configured

secrets-inherit ​

A reusable workflow is called with secrets: inherit.

secrets-outside-env ​

A job uses a secret but has no environment, or passes one to a reusable workflow.

  • Group: security
  • Default level: warn
  • Profile: pedantic
  • Option allow (strings, empty by default): Names of secrets which may be used outside of an environment. GITHUB_TOKEN is always allowed.
  • Details and examples

self-hosted-runner ​

A job runs on a self-hosted runner: the label self-hosted, a label of self-hosted-runner.labels or a runner group.

  • Group: security
  • Default level: info
  • Profile: pedantic
  • Option allow (strings, empty by default): Glob patterns of the labels and the runner groups of runners which are ephemeral or trusted. A job with one of them is not reported.
  • Option pull-request-only (bool, default false): Report only the jobs of workflows that a pull request event can start, which is the case that poutine reports.
  • Details and examples

self-repository ​

A local action or workflow is referenced as ./path instead of $/path.

shell-syntax ​

A shell script at "run:" has a syntax error (found without shellcheck).

shellcheck ​

shellcheck reported an issue in a shell script.

stale-action-refs ​

A hash-pinned action uses a commit which no tag of the repository points to.

  • Group: security
  • Default level: info
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Details and examples

superfluous-actions ​

An action does what a tool of the runner image does as well, such as gh release create.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

template-injection ​

A potentially untrusted input is expanded in a script, a container option or the prompt of an AI agent. With the option pedantic, so is any other expression.

  • Group: security
  • Default level: error
  • Profile: correctness
  • Fixable: yes
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

timeout-too-long ​

timeout-minutes of a job exceeds the configured maximum.

  • Group: policy
  • Default level: error
  • Profile: only when configured
  • Option max (number, no default): The maximum allowed timeout-minutes. The rule does nothing without it.
  • Details and examples

typosquat-uses ​

An action is one typo away from a popular action of another owner.

  • Group: security
  • Default level: error
  • Profile: default
  • Option allow (strings, empty by default): Slugs (owner/repo) of actions which are never reported, e.g. a legitimate fork.
  • Details and examples

ubuntu-slim-limits ​

A job on ubuntu-slim has a container, services or a Docker container action, which the single-CPU runner cannot run. With the option pedantic, a timeout-minutes above its limit of 15 minutes counts too.

  • Group: correctness
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

undefined-function ​

An undefined function is called in an expression.

undefined-job-needs ​

A job needs a job which does not exist.

undefined-property ​

An undefined variable or property is accessed in an expression.

  • Group: correctness
  • Default level: error
  • Profile: correctness
  • Option strict-event-payloads (bool, no default): Report a property of github.event which the events of the workflow do not have, also when another event has it. Unset, a property is reported only when no webhook event has it, and the pedantic profile turns the option on.
  • Details and examples

undocumented-permissions ​

A permission scope above read has no comment explaining it.

  • Group: policy
  • Default level: info
  • Profile: pedantic
  • Option include-read (bool, no default): Also require a comment for scopes granted with read, except contents: read. Unset, it runs under the pedantic profile.
  • Details and examples

unknown-action-input ​

An input which the action does not define is specified.

unknown-event ​

An unknown Webhook event is used.

unknown-runner-label ​

A runner label is unknown, or is one that GitHub has retired.

unknown-workflow-input ​

An input which the reusable workflow does not define is specified.

unknown-workflow-secret ​

A secret which the reusable workflow does not define is passed.

unlocked-install ​

cargo install runs without --locked, or npm, yarn or pnpm install without freezing a lock file that the repository has. With the option pedantic, also installs without a lock file, npm, Yarn and bun installs that run the lifecycle scripts of the dependencies (and aube installs that allow every build), and installs without a release-age cooldown.

  • Group: security
  • Default level: error
  • Profile: default
  • Fixable: yes
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

unmatched-paths-filter ​

An entry of paths or paths-ignore matches no file of the repository.

unpinnable-action ​

A hash-pinned action pulls in an action or a Docker image by a tag or a branch, so its pin does not freeze what runs. Only with the option pedantic.

  • Group: security
  • Default level: warn
  • Profile: only with --online
  • Needs network access: yes (only with --online)
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

unpinned-images ​

A container or service image is not pinned by a digest.

  • Group: security
  • Default level: error
  • Profile: default
  • Fixable: yes
  • Option require-digest (bool, default true): Report images pinned by a tag other than latest too. Turn it off to report only images without a tag or with the latest tag.
  • Option policies (string-map, default empty): How strongly to pin the images matching a pattern: hash-pin (a digest, the default of require-digest), tag-pin (a tag other than latest, or a digest) or any. The most specific pattern that matches wins over require-digest: more literal characters before the first , in the pattern with the registry written out, then fewer , then a tag, then the longer pattern. Patterns are globs of the image name, where * matches any characters: "", "ghcr.io/my-org/", "registry.example.com/team/tool" or "node:20". The registry of Docker Hub can be left out ("node" is "docker.io/library/node").
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

unpinned-tools ​

An action installs the newest version of its tool because no version is set or it is latest.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

unpinned-uses ​

An action, reusable workflow or Docker image is not pinned to a commit SHA or digest.

  • Group: policy
  • Default level: error
  • Profile: default
  • Fixable: yes
  • Option policies (string-map, default empty): How strongly to pin the actions matching a pattern: hash-pin (full commit SHA, the default for everything), ref-pin (any tag, branch or SHA), immutable-release (a full commit SHA, or with --online the tag of an immutable GitHub release) or any. The most specific pattern wins. Patterns are "", "owner/", "owner/repo" and "owner/repo/path". Docker images follow the "*" policy.
  • Option actions-lock (bool, default true): Accept an action which is not pinned to a commit in a workflow when the Actions lock file of the repository (.github/workflows/actions.lock) pins it to a full commit for that workflow. The lock file is a technical preview of GitHub whose format may change. Set it to false to ignore the lock file.
  • Option short-pin-comment (bool, default false): Make --online --fix name the tag as written in the comment of a pin (# v4), not the most specific version tag of the commit (# v4.2.4).
  • Details and examples

unreachable-required-check ​

A check listed in required-checks is reported by no job, or a trigger filter keeps its workflow from starting, so the check stays pending.

unredacted-secrets ​

A secret is parsed with fromJSON(), so the fields of it are not redacted in logs. With the option pedantic, also a value that a script cuts from a secret and prints without masking it.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

unsound-contains ​

A condition uses contains() on a string literal, which also matches substrings.

unsound-prefix-match ​

An account, an owner or a repository is identified by a prefix, a suffix or a part of its name.

  • Group: security
  • Default level: error
  • Profile: default
  • Option refs (bool, default false): Also check the names of branches and tags (github.ref, github.head_ref, ...). A prefix test of a ref is often meant, so this is noisy.
  • Details and examples

unsound-ternary ​

The a && b || c idiom has a falsy b so it always evaluates to c.

untrusted-artifact ​

A workflow_run workflow uses an artifact of the triggering run without validating it. With the option pedantic, also one that downloads every artifact of the run.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

untrusted-checkout ​

A pull_request_target, workflow_run or issue_comment workflow checks out the code of a pull request and runs it, or turns off the protection of actions/checkout against the code of fork pull requests. It also reports a gate that holds at one moment (an environment, a label, the comment of a maintainer) in front of a branch that the author can still push to, and a label that survives a push. With the option pedantic, a checkout that actions/checkout refuses for a fork and a dispatch with the number of a pull request and no commit are reported too, and with the option any-checkout a checkout that nothing visibly runs.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Option any-checkout (bool, no default): Also report a checkout of the code of a pull request in a privileged workflow when no later step visibly runs it, like Scorecard and Semgrep do. Unset, it is true under the pedantic profile.
  • Details and examples

unused-anchor ​

A YAML anchor is defined but never used.

unused-baseline-entry ​

A baseline entry matches no finding any more, so the baseline can shrink.

  • Group: policy
  • Default level: info
  • Profile: correctness

unused-ignore ​

An ignore comment or an entry of "ignores" in the config file did not suppress anything.

  • Group: policy
  • Default level: error
  • Profile: pedantic
  • Fixable: yes
  • Option zizmor (bool, default false): Also report "# zizmor: ignore[...]" comments which suppressed nothing. Turn it on after zizmor is gone.
  • Details and examples

unused-job-output ​

An output of a job is never read by another job or by a workflow_call output.

unused-needs ​

A needs entry is neither read by the job nor needed for the order of jobs.

unused-workflow-input ​

An input of workflow_dispatch or workflow_call is never used.

unused-workflow-secret ​

A secret of workflow_call is never used.

unverified-download ​

A script runs what it downloads without verifying it.

  • Group: security
  • Default level: error
  • Profile: default
  • Option allow (strings, empty by default): Hosts, or URL prefixes (entries with "😕/"), whose downloads are accepted without verification.
  • Details and examples

use-trusted-publishing ​

A package is published with a long-lived credential although the registry supports trusted publishing. With the option pedantic, also trusted publishing in a job that builds the package or has no environment, and attestations that are switched off.

  • Group: security
  • Default level: error
  • Profile: default
  • Option pedantic (bool, no default): Also report the pedantic checks, which are noisier. Unset, they run under the pedantic profile.
  • Details and examples

workflow-call-permissions ​

A caller job grants fewer permissions than a reusable workflow requires.

workflow-input-type ​

The type of a value passed to a reusable workflow does not match its input.

workflow-run-names ​

A workflow_run event refers to a workflow which does not exist in the repository.

workflow-secret-scope ​

A secret is assigned to the workflow-level env and reaches multiple jobs. With the option job-level, also one of the env of a job that reaches its steps.

  • Group: security
  • Default level: warn
  • Profile: pedantic
  • Option job-level (bool, default false): Also report a secret assigned to the env of a job with two or more steps, which reaches those that do not set the variable themselves.
  • Details and examples

workflow-syntax ​

The workflow does not follow the syntax of GitHub Actions workflows.

yaml-syntax ​

The file is not valid YAML.

  • Group: correctness
  • Default level: error
  • Profile: correctness

Retired rule IDs ​

These IDs existed while 2.0 was in development, before the first release, and were merged into the rule that reports their findings now. --ignore, the ignore lists of paths and the # jactionlint ignore= comments still accept them: such an ignore matches only the findings that had the old ID, and jactionlint warns that the ID is deprecated. rules, ignores, fix.rules and --fix-rules do not accept them.

Retired IDRuleFindings are on with
github-env-untrusted-inputgithub-envalways
misfeature-custom-shellmisfeaturethe option pedantic
template-injection-expansiontemplate-injectionthe option pedantic
template-injection-trustedtemplate-injectionthe option pedantic
MIT LicenseCopyright Š 2026jdx.dev