Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v2.1.0
### feat: Update options with latest enhancements
## v2.0.2
### fix: Bump version
## v2.0.1
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ seqra-job:
# Relative path to the root of the analyzed project
PROJECT_ROOT: "."
# Tag of seqra release
SEQRA_VERSION: "v2.0.2"
# Relative path to rules. If set RULES_REPOSITORY not used
RULES_PATH: ""
SEQRA_VERSION: "v2.1.0"
# Comma-separated paths to rule files or directories (e.g., "rules/custom.yml,rules/extra")
RULES_PATH: "builtin"
# Comma-separated severity levels to report: note, warning, error
SEVERITY: "warning,error"
# Scan timeout
TIMEOUT: "15m"
```
Expand Down
20 changes: 14 additions & 6 deletions seqra.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
# Relative path to the root of the analyzed project
PROJECT_ROOT: "."
# Tag of seqra release
SEQRA_VERSION: "v2.0.2"
# Relative path to rules. If set RULES_REPOSITORY not used
RULES_PATH: ""
SEQRA_VERSION: "v2.1.0"
# Comma-separated paths to rule files or directories (e.g., "rules/custom.yml,rules/extra")
RULES_PATH: "builtin"
# Comma-separated severity levels to report: note, warning, error
SEVERITY: "warning,error"
# Scan timeout
TIMEOUT: "15m"
script:
Expand Down Expand Up @@ -41,9 +43,15 @@
- |
cmd="$SEQRA_ARTIFACTS/seqra scan --quiet"

if [ -n "$RULES_PATH" ]; then
cmd="$cmd --ruleset $RULES_PATH"
fi
IFS=',' read -ra rulesets <<< "$RULES_PATH"
for ruleset in "${rulesets[@]}"; do
cmd="$cmd --ruleset $ruleset"
done

IFS=',' read -ra severities <<< "$SEVERITY"
for severity in "${severities[@]}"; do
cmd="$cmd --severity $severity"
done

cmd="$cmd --timeout $TIMEOUT"
cmd="$cmd --output analysis_results/seqra.sarif $SEQRA_ARTIFACTS/project"
Expand Down