Skip to content

saleor/semgrep-rules

Saleor Semgrep Rules

This repository contains Semgrep rules developed and made public by @Saleor.

Usage

To be able to use the rules, the git repository needs to be cloned.

Then a single rule can be run from the clone repository, for example:

semgrep -c /path-to-the-clone-semgrep-rules/the-rule.yml .

Alternatively, all rules can be run:

semgrep -c /path-to-the-clone-semgrep-rules .

Rules

Typescript

ID Impact Confidence Description
typescript.lang.security.audit.timing-attack-comparison HIGH LOW Checks comparisons against secrets are time-safe.

YAML

ID Impact Confidence Description
yaml.github-actions.security.audit.shell-script-injection HIGH HIGH Ensures no string interpolations (${{ ... }}) are present inside run blocks of GitHub Actions.

Contributing

Refer to our guidelines: