Use CEL expressions to filter and analyze dependencies with flexible criteria
true
.
Variable | Content |
---|---|
_ | The root variable, holding other variables |
vulns | Map of vulnerabilities organized by severity |
scorecard | OpenSSF Scorecard metrics and scores |
projects | List of source projects associated with the package |
licenses | List of licenses in SPDX license code format |
pkg | Package information (ecosystem, name, version) |
Optimize Complex Filters
&&
instead of nested conditions when possibleUse Appropriate Data Types
size()
for counting array elementsexists()
for checking array membershipBatch Operations
size()
- Get length of arrays or mapsexists(var, condition)
- Check if condition is true for any elementin
- Check membership in arrays or mapscontains()
- String contains checkstartsWith()
/ endsWith()
- String prefix/suffix checks==
, !=
- Equality comparison<
, <=
, >
, >=
- Numeric comparison&&
, ||
- Logical AND, OR!
- Logical NOT+
, -
, *
, /
- Arithmetic operationstrue
, false
- Booleans"string"
- Strings (double quotes)123
, 45.67
- Numbers["a", "b"]
- Arrays{"key": "value"}
- Maps