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) orstyle. - a default level:
error,warnorinfo. 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) andpedantic(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 theprofilekey of the configuration or from--profile. - a fix: whether
jactionlint --fixcan repair its findings.--fixapplies the safe fixes and--fix=unsafethe others, see Fix findings automatically. - a pedantic option: a few rules report their noisier findings too when the option
pedanticis true. It is true under thepedanticprofile and false otherwise, andrules: {<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.
# .github/jactionlint.yaml
profile: pedantic
rules:
unpinned-uses: warn # lower the level
require-shell: off # turn a rule off| ID | Summary | Group | Default level | Profile | Fixable |
|---|---|---|---|---|---|
| action-release-cooldown | An action is pinned to a version released less than the cooldown ago. | security | warn | only with --online, and only when rules has an entry for it (opt-in) | no |
| action-syntax | The action metadata does not follow the syntax of action.yml. | correctness | error | correctness | no |
| actions-lock | The Actions lock file does not match the workflows: an action is missing from it, an entry is stale or malformed. | security | error | default | no |
| 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. | security | error | only with --online | no |
| adhoc-packages | A package is installed by name with npm, yarn, pnpm, bun, aube, gem or bundle add outside of a lock file. | security | error | default | no |
| agentic-actions | An AI agent action can be steered by outsiders, runs on code of a pull request, or has its safeguards turned off. | security | error | default | no |
| anonymous-definition | A workflow has no top-level name:. | policy | warn | pedantic | yes |
| archived-uses | An action or reusable workflow is in an archived repository. | security | warn | only with --online | no |
| 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. | security | warn | pedantic | no |
| artipacked | actions/checkout persists the GITHUB_TOKEN credential in the git config. | security | error | default | yes |
| background-step-not-waited | Outputs or results of a background step are read before a wait step covers it. | correctness | error | correctness | no |
| bot-conditions | A condition trusts a bot by github.actor, which can be spoofed. | security | error | default | yes |
| 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. | security | error | default | no |
| checkout-static-credentials | actions/checkout is given an SSH key or a token that does not expire. | security | error | default | no |
| 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. | security | warn | pedantic | no |
| comment-trigger-authorization | A job of a comment-triggered workflow is started by the text of the comment and nothing checks who wrote it. | security | warn | pedantic | no |
| concurrency-cancels-prs | A concurrency group that cancels runs is shared by all pull requests, so unrelated pull requests cancel each other. | correctness | error | default | no |
| concurrency-cancels-release | cancel-in-progress can cancel a release or a deployment which is still running. | correctness | error | default | yes |
| 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. | correctness | error | correctness | no |
| concurrency-limits | A workflow does not cancel superseded runs with concurrency:. | policy | error | default | yes |
| conflicting-action-inputs | Two inputs of a well-known action exclude each other. | correctness | error | correctness | no |
| conflicting-runner-labels | The runner labels of a job conflict with each other. | correctness | error | correctness | no |
| constant-condition | An if: condition is a constant expression. | correctness | error | correctness | no |
| context-availability | A context or special function is used where it is not available. | correctness | error | correctness | no |
| continue-on-error | A job has continue-on-error: true, so its failure does not fail the workflow. | policy | info | pedantic | no |
| cron-too-frequent | A scheduled job runs more often than once every 5 minutes. | correctness | error | correctness | no |
| cyclic-job-needs | Jobs depend on each other in a cycle. | correctness | error | correctness | no |
| 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. | security | error | default | no |
| dependabot-cooldown | An update in dependabot.yml has no cooldown or a cooldown shorter than the minimum. | security | error | default | yes |
| dependabot-execution | An update in dependabot.yml allows insecure external code execution. | security | error | default | yes |
| 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. | policy | warn | pedantic | yes |
| dependabot-syntax | The Dependabot configuration does not follow the syntax of dependabot.yml. | correctness | error | correctness | no |
| deprecated-action-input | A deprecated input of an action is used. | correctness | error | correctness | no |
| deprecated-commands | A deprecated workflow command such as ::set-output is used. | correctness | error | correctness | no |
| deprecated-node-runtime | A Node.js runtime that GitHub Actions removed is declared, used or selected by an environment variable. | policy | warn | pedantic | no |
| deprecated-runner-label | A runner label is deprecated and GitHub is going to retire it on a known date, such as macos-14. | policy | warn | pedantic | no |
| duplicate-job-id | A job ID is defined more than once. | correctness | error | correctness | no |
| duplicate-job-needs | A job ID is listed more than once in needs. | correctness | error | correctness | no |
| duplicate-key | A key is defined more than once in a mapping. | correctness | error | correctness | no |
| duplicate-step-id | A step ID is not unique within its job. | correctness | error | correctness | no |
| duplicate-triggers | push and pull_request both run the workflow for the same commit. | policy | error | default | no |
| 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. | correctness | error | correctness | yes |
| event-name-never-received | github.event_name is compared with an event that the workflow never receives, so the comparison is always false. | correctness | warn | pedantic | no |
| excessive-permissions | The GITHUB_TOKEN gets write access that is broader than needed. | security | error | default | no |
| expired-ignore | An entry of "ignores" in the config file has expired or is about to. | policy | error | correctness | no |
| expression-syntax | A ${{ }} expression has a syntax error. | correctness | error | correctness | no |
| expression-type | A ${{ }} expression has a type error. | correctness | error | correctness | no |
| fail-fast-action-inputs | An action which passes by default when nothing was produced or found is not told to fail. | correctness | warn | pedantic | yes |
| forbidden-uses | An action or reusable workflow is not allowed or is denied by the configuration. | policy | error | only when configured | no |
| gate-job-skipped-on-failure | A job that reads the results of the jobs it needs is skipped when one of them fails. | correctness | error | default | no |
| gh-without-token | A script runs the gh command although no GH_TOKEN or GITHUB_TOKEN reaches the step, so gh stops. | correctness | error | correctness | no |
| 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. | security | error | default | no |
| 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. | security | error | default | no |
| github-script-syntax | The script of actions/github-script has a JavaScript syntax error. | correctness | error | correctness | no |
| hardcoded-container-credentials | A password for a container registry is written directly in the workflow. | security | error | correctness | no |
| hardcoded-registry-credentials | A registry in dependabot.yml has a password, token or key written in plain text. | security | error | default | no |
| if-always-true | An if: condition is always true because of the characters around ${{ }}. | correctness | error | correctness | no |
| 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). | security | error | only with --online | no |
| insecure-commands | ACTIONS_ALLOW_UNSECURE_COMMANDS enables the deprecated set-env and add-path commands. | security | error | default | yes |
| insecure-ssh-keyscan | ssh-keyscan output is trusted as the host key without verification. | security | error | default | no |
| insecure-url-scheme | A download uses http, ftp or git instead of https. | security | error | default | no |
| insufficient-permissions | The explicit permissions of a job do not grant what an action or command of the job needs from the GITHUB_TOKEN. | correctness | error | default | no |
| invalid-activity-type | An activity type is not available for the Webhook event. | correctness | error | correctness | no |
| invalid-cron | A cron schedule has an invalid format. | correctness | error | correctness | no |
| invalid-env-var-name | An environment variable name contains characters which are not allowed. | correctness | error | correctness | no |
| invalid-event-config | An event is configured with options it does not support. | correctness | error | correctness | no |
| invalid-event-filter | An event filter is not available for the event or conflicts with another filter. | correctness | error | correctness | no |
| invalid-function-call | A built-in function is called with wrong arguments. | correctness | error | correctness | no |
| invalid-glob | A glob filter pattern is invalid. | correctness | error | correctness | no |
| invalid-id | A job or step ID does not follow the naming convention. | correctness | error | correctness | no |
| invalid-ignore-comment | An inline ignore comment is invalid. | correctness | error | correctness | no |
| invalid-label-pattern | A runner label pattern in the configuration is not a valid glob. | correctness | error | correctness | no |
| invalid-local-action | A local action cannot be loaded or its metadata is invalid. | correctness | error | correctness | no |
| invalid-local-workflow | A local reusable workflow cannot be loaded or is invalid. | correctness | error | correctness | no |
| invalid-parallel-step | A step is not allowed inside a parallel group or refers to a wrong step. | correctness | error | correctness | no |
| invalid-permissions | A permission scope or its value is invalid. | correctness | error | correctness | no |
| invalid-shell-name | A shell name is not available on the runner. | correctness | error | correctness | no |
| invalid-timezone | A timezone of a schedule is not a valid IANA timezone name. | correctness | error | correctness | no |
| invalid-uses | A uses: value does not follow the format of an action or a Docker image. | correctness | error | correctness | no |
| invalid-workflow-call | A reusable workflow call does not follow the format of a reusable workflow. | correctness | error | correctness | no |
| invalid-workflow-call-input | An input of the workflow_call event is invalid. | correctness | error | correctness | no |
| invalid-workflow-dispatch-input | An input of the workflow_dispatch event is invalid. | correctness | error | correctness | no |
| invisible-characters | A file contains an invisible or bidirectional control character which hides what the text says. | security | error | default | yes |
| known-vulnerable-actions | An action version is affected by a published GitHub security advisory. | security | error | only with --online | no |
| local-action-checkout | A local action is used before any step checks out the repository. | correctness | error | correctness | no |
| macos-gnu-flags | A command at run: has a GNU-only option and the job runs on macOS, which has the BSD command. | correctness | warn | pedantic | no |
| 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. | correctness | error | correctness | yes |
| matrix-duplicate-value | A matrix has a duplicate value. | correctness | error | correctness | no |
| matrix-invalid-exclude | An exclude entry of a matrix does not match the matrix. | correctness | error | correctness | no |
| max-run-lines | A run: script has more lines than allowed. | style | error | pedantic | no |
| merge-key | The YAML merge key << is used, which GitHub Actions does not support. | correctness | error | correctness | no |
| 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. | security | error | default | no |
| missing-action-input | A required input of an action is not specified. | correctness | error | correctness | no |
| missing-permissions | Neither the workflow nor the job sets permissions:. | policy | error | default | yes |
| missing-timeout | A job does not set timeout-minutes. | policy | error | default | yes |
| missing-version-comment | A hash-pinned action has no comment which names its version. | policy | warn | pedantic | yes |
| missing-workflow-input | A required input of a reusable workflow is not specified. | correctness | error | correctness | no |
| missing-workflow-secret | A required secret of a reusable workflow is not passed. | correctness | error | correctness | no |
| multiline-plain-run | A run: is written over several lines without |, so YAML folds the lines into one command. | correctness | error | correctness | yes |
| mutable-runner-label | A runner label is an alias that GitHub moves to newer images, such as ubuntu-latest. | policy | warn | pedantic | yes |
| obfuscation | A path at uses: or an expression is written in an obfuscated way. | security | error | default | yes |
| outdated-action-runner | An action runs on a runtime which GitHub Actions no longer supports. | correctness | error | correctness | no |
| 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. | security | warn | pedantic | no |
| overprovisioned-secrets | An expression uses the whole secrets context. | security | error | default | no |
| pipeline-without-pipefail | A failing command in a pipeline of a run: script is hidden because the shell does not enable pipefail. | correctness | error | default | yes |
| pyflakes | pyflakes reported an issue in a Python script. | correctness | error | correctness | no |
| recursive-alias | A YAML alias refers to itself. | correctness | error | correctness | no |
| ref-confusion | The ref of an action is both a branch and a tag of its repository. | security | warn | only with --online | no |
| ref-version-mismatch | The version comment of a hash-pinned action does not match the pinned commit. | security | warn | only with --online | yes |
| repojacking | An action or reusable workflow has an owner whose name anyone can register. | security | warn | only with --online | no |
| require-expression-wrapping | An if: condition is not wrapped in ${{ }}. | style | error | pedantic | no |
| require-shell | A run: step does not set the shell explicitly. | style | error | pedantic | no |
| required-actions | An action listed in required-actions is not used by a workflow. | policy | error | only when configured | no |
| secrets-inherit | A reusable workflow is called with secrets: inherit. | security | error | default | no |
| secrets-outside-env | A job uses a secret but has no environment, or passes one to a reusable workflow. | security | warn | pedantic | no |
| 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. | security | info | pedantic | no |
| self-repository | A local action or workflow is referenced as ./path instead of $/path. | security | info | pedantic | yes |
| shell-syntax | A shell script at "run:" has a syntax error (found without shellcheck). | correctness | error | default | no |
| shellcheck | shellcheck reported an issue in a shell script. | correctness | error | correctness | no |
| stale-action-refs | A hash-pinned action uses a commit which no tag of the repository points to. | security | info | only with --online | no |
| superfluous-actions | An action does what a tool of the runner image does as well, such as gh release create. | security | error | default | no |
| 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. | security | error | correctness | yes |
| timeout-too-long | timeout-minutes of a job exceeds the configured maximum. | policy | error | only when configured | no |
| typosquat-uses | An action is one typo away from a popular action of another owner. | security | error | default | no |
| 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. | correctness | error | default | no |
| undefined-function | An undefined function is called in an expression. | correctness | error | correctness | no |
| undefined-job-needs | A job needs a job which does not exist. | correctness | error | correctness | no |
| undefined-property | An undefined variable or property is accessed in an expression. | correctness | error | correctness | no |
| undocumented-permissions | A permission scope above read has no comment explaining it. | policy | info | pedantic | no |
| unknown-action-input | An input which the action does not define is specified. | correctness | error | correctness | no |
| unknown-event | An unknown Webhook event is used. | correctness | error | correctness | no |
| unknown-runner-label | A runner label is unknown, or is one that GitHub has retired. | correctness | error | correctness | no |
| unknown-workflow-input | An input which the reusable workflow does not define is specified. | correctness | error | correctness | no |
| unknown-workflow-secret | A secret which the reusable workflow does not define is passed. | correctness | error | correctness | no |
| 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. | security | error | default | yes |
| unmatched-paths-filter | An entry of paths or paths-ignore matches no file of the repository. | correctness | warn | pedantic | no |
| 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. | security | warn | only with --online | no |
| unpinned-images | A container or service image is not pinned by a digest. | security | error | default | yes |
| unpinned-tools | An action installs the newest version of its tool because no version is set or it is latest. | security | error | default | no |
| unpinned-uses | An action, reusable workflow or Docker image is not pinned to a commit SHA or digest. | policy | error | default | yes |
| 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. | correctness | error | only when configured | no |
| 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. | security | error | default | no |
| unsound-contains | A condition uses contains() on a string literal, which also matches substrings. | security | error | default | no |
| unsound-prefix-match | An account, an owner or a repository is identified by a prefix, a suffix or a part of its name. | security | error | default | no |
| unsound-ternary | The a && b || c idiom has a falsy b so it always evaluates to c. | correctness | error | correctness | no |
| 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. | security | error | default | no |
| 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. | security | error | default | no |
| unused-anchor | A YAML anchor is defined but never used. | correctness | error | correctness | no |
| unused-baseline-entry | A baseline entry matches no finding any more, so the baseline can shrink. | policy | info | correctness | no |
| unused-ignore | An ignore comment or an entry of "ignores" in the config file did not suppress anything. | policy | error | pedantic | yes |
| unused-job-output | An output of a job is never read by another job or by a workflow_call output. | policy | error | default | no |
| unused-needs | A needs entry is neither read by the job nor needed for the order of jobs. | style | info | pedantic | no |
| unused-workflow-input | An input of workflow_dispatch or workflow_call is never used. | policy | warn | pedantic | no |
| unused-workflow-secret | A secret of workflow_call is never used. | policy | warn | pedantic | no |
| unverified-download | A script runs what it downloads without verifying it. | security | error | default | no |
| 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. | security | error | default | no |
| workflow-call-permissions | A caller job grants fewer permissions than a reusable workflow requires. | correctness | error | correctness | no |
| workflow-input-type | The type of a value passed to a reusable workflow does not match its input. | correctness | error | correctness | no |
| workflow-run-names | A workflow_run event refers to a workflow which does not exist in the repository. | correctness | error | correctness | no |
| 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. | security | warn | pedantic | no |
| workflow-syntax | The workflow does not follow the syntax of GitHub Actions workflows. | correctness | error | correctness | no |
| yaml-syntax | The file is not valid YAML. | correctness | error | correctness | no |
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 whenruleshas 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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: security
- Default level: error
- Profile: default
- Details and examples
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:.
- Group: policy
- Default level: warn
- Profile: pedantic
- Fixable: yes
- Details and examples
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.
- Group: security
- Default level: warn
- Profile: pedantic
- Details and examples
artipacked â
actions/checkout persists the GITHUB_TOKEN credential in the git config.
- Group: security
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
background-step-not-waited â
Outputs or results of a background step are read before a wait step covers it.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
bot-conditions â
A condition trusts a bot by github.actor, which can be spoofed.
- Group: security
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
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.
- Group: security
- Default level: warn
- Profile: pedantic
- Details and examples
comment-trigger-authorization â
A job of a comment-triggered workflow is started by the text of the comment and nothing checks who wrote it.
- Group: security
- Default level: warn
- Profile: pedantic
- Details and examples
concurrency-cancels-prs â
A concurrency group that cancels runs is shared by all pull requests, so unrelated pull requests cancel each other.
- Group: correctness
- Default level: error
- Profile: default
- Details and examples
concurrency-cancels-release â
cancel-in-progress can cancel a release or a deployment which is still running.
- Group: correctness
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
conflicting-runner-labels â
The runner labels of a job conflict with each other.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
constant-condition â
An if: condition is a constant expression.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
context-availability â
A context or special function is used where it is not available.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
cyclic-job-needs â
Jobs depend on each other in a cycle.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: security
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
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.
- Group: policy
- Default level: warn
- Profile: pedantic
- Fixable: yes
- Details and examples
dependabot-syntax â
The Dependabot configuration does not follow the syntax of dependabot.yml.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
deprecated-action-input â
A deprecated input of an action is used.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
deprecated-commands â
A deprecated workflow command such as ::set-output is used.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
deprecated-node-runtime â
A Node.js runtime that GitHub Actions removed is declared, used or selected by an environment variable.
- Group: policy
- Default level: warn
- Profile: pedantic
- Details and examples
deprecated-runner-label â
A runner label is deprecated and GitHub is going to retire it on a known date, such as macos-14.
- Group: policy
- Default level: warn
- Profile: pedantic
- Details and examples
duplicate-job-id â
A job ID is defined more than once.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
duplicate-job-needs â
A job ID is listed more than once in needs.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
duplicate-key â
A key is defined more than once in a mapping.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
duplicate-step-id â
A step ID is not unique within its job.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
duplicate-triggers â
push and pull_request both run the workflow for the same commit.
- Group: policy
- Default level: error
- Profile: default
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Fixable: yes
- Details and examples
event-name-never-received â
github.event_name is compared with an event that the workflow never receives, so the comparison is always false.
- Group: correctness
- Default level: warn
- Profile: pedantic
- Details and examples
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.
- Group: policy
- Default level: error
- Profile: correctness
- Details and examples
expression-syntax â
A ${{ }} expression has a syntax error.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
expression-type â
A ${{ }} expression has a type error.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
fail-fast-action-inputs â
An action which passes by default when nothing was produced or found is not told to fail.
- Group: correctness
- Default level: warn
- Profile: pedantic
- Fixable: yes
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: default
- Details and examples
gh-without-token â
A script runs the gh command although no GH_TOKEN or GITHUB_TOKEN reaches the step, so gh stops.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: security
- Default level: error
- Profile: default
- Details and examples
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.
- Group: security
- Default level: error
- Profile: default
- Details and examples
github-script-syntax â
The script of actions/github-script has a JavaScript syntax error.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
hardcoded-container-credentials â
A password for a container registry is written directly in the workflow.
- Group: security
- Default level: error
- Profile: correctness
- Details and examples
hardcoded-registry-credentials â
A registry in dependabot.yml has a password, token or key written in plain text.
- Group: security
- Default level: error
- Profile: default
- Details and examples
if-always-true â
An if: condition is always true because of the characters around ${{ }}.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: security
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
insecure-ssh-keyscan â
ssh-keyscan output is trusted as the host key without verification.
- Group: security
- Default level: error
- Profile: default
- Details and examples
insecure-url-scheme â
A download uses http, ftp or git instead of https.
- Group: security
- Default level: error
- Profile: default
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-cron â
A cron schedule has an invalid format.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-env-var-name â
An environment variable name contains characters which are not allowed.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-event-config â
An event is configured with options it does not support.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-event-filter â
An event filter is not available for the event or conflicts with another filter.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-function-call â
A built-in function is called with wrong arguments.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-glob â
A glob filter pattern is invalid.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-id â
A job or step ID does not follow the naming convention.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-ignore-comment â
An inline ignore comment is invalid.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-label-pattern â
A runner label pattern in the configuration is not a valid glob.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-local-action â
A local action cannot be loaded or its metadata is invalid.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-local-workflow â
A local reusable workflow cannot be loaded or is invalid.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-parallel-step â
A step is not allowed inside a parallel group or refers to a wrong step.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-permissions â
A permission scope or its value is invalid.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-shell-name â
A shell name is not available on the runner.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-timezone â
A timezone of a schedule is not a valid IANA timezone name.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-uses â
A uses: value does not follow the format of an action or a Docker image.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-workflow-call â
A reusable workflow call does not follow the format of a reusable workflow.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-workflow-call-input â
An input of the workflow_call event is invalid.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invalid-workflow-dispatch-input â
An input of the workflow_dispatch event is invalid.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
invisible-characters â
A file contains an invisible or bidirectional control character which hides what the text says.
- Group: security
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
macos-gnu-flags â
A command at run: has a GNU-only option and the job runs on macOS, which has the BSD command.
- Group: correctness
- Default level: warn
- Profile: pedantic
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
matrix-invalid-exclude â
An exclude entry of a matrix does not match the matrix.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
missing-permissions â
Neither the workflow nor the job sets permissions:.
- Group: policy
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
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.
- Group: policy
- Default level: warn
- Profile: pedantic
- Fixable: yes
- Details and examples
missing-workflow-input â
A required input of a reusable workflow is not specified.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
missing-workflow-secret â
A required secret of a reusable workflow is not passed.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
multiline-plain-run â
A run: is written over several lines without |, so YAML folds the lines into one command.
- Group: correctness
- Default level: error
- Profile: correctness
- Fixable: yes
- Details and examples
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.
- Group: security
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
outdated-action-runner â
An action runs on a runtime which GitHub Actions no longer supports.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: security
- Default level: warn
- Profile: pedantic
- Details and examples
overprovisioned-secrets â
An expression uses the whole secrets context.
- Group: security
- Default level: error
- Profile: default
- Details and examples
pipeline-without-pipefail â
A failing command in a pipeline of a run: script is hidden because the shell does not enable pipefail.
- Group: correctness
- Default level: error
- Profile: default
- Fixable: yes
- Details and examples
pyflakes â
pyflakes reported an issue in a Python script.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
recursive-alias â
A YAML alias refers to itself.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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 ${{ }}.
- Group: style
- Default level: error
- Profile: pedantic
- Details and examples
require-shell â
A run: step does not set the shell explicitly.
- Group: style
- Default level: error
- Profile: pedantic
- Details and examples
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.
- Group: security
- Default level: error
- Profile: default
- Details and examples
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.
- Group: security
- Default level: info
- Profile: pedantic
- Fixable: yes
- Details and examples
shell-syntax â
A shell script at "run:" has a syntax error (found without shellcheck).
- Group: correctness
- Default level: error
- Profile: default
- Details and examples
shellcheck â
shellcheck reported an issue in a shell script.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
undefined-job-needs â
A job needs a job which does not exist.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
unknown-event â
An unknown Webhook event is used.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
unknown-runner-label â
A runner label is unknown, or is one that GitHub has retired.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
unknown-workflow-input â
An input which the reusable workflow does not define is specified.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
unknown-workflow-secret â
A secret which the reusable workflow does not define is passed.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: warn
- Profile: pedantic
- Details and examples
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 --fixname 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.
- Group: correctness
- Default level: error
- Profile: only when configured
- Details and examples
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.
- Group: security
- Default level: error
- Profile: default
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: policy
- Default level: error
- Profile: default
- Details and examples
unused-needs â
A needs entry is neither read by the job nor needed for the order of jobs.
- Group: style
- Default level: info
- Profile: pedantic
- Details and examples
unused-workflow-input â
An input of workflow_dispatch or workflow_call is never used.
- Group: policy
- Default level: warn
- Profile: pedantic
- Details and examples
unused-workflow-secret â
A secret of workflow_call is never used.
- Group: policy
- Default level: warn
- Profile: pedantic
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
workflow-input-type â
The type of a value passed to a reusable workflow does not match its input.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
workflow-run-names â
A workflow_run event refers to a workflow which does not exist in the repository.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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.
- Group: correctness
- Default level: error
- Profile: correctness
- Details and examples
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 ID | Rule | Findings are on with |
|---|---|---|
github-env-untrusted-input | github-env | always |
misfeature-custom-shell | misfeature | the option pedantic |
template-injection-expansion | template-injection | the option pedantic |
template-injection-trusted | template-injection | the option pedantic |