CodeQL library for GitHub Actions
codeql/actions-all 0.4.27-dev (changelog, source)
Search

Predicate Bash::varMatchesRegexTest

Holds if there test command that checks a variable against a regex eg: [[ $VAR =~ ^[a-zA-Z0-9_]+$ ]]

Import path

import actions
predicate varMatchesRegexTest(BashShellScript script, string var, string regex)