Skip to content

Commit e81381a

Browse files
Automatically open results DB
1 parent 4bced23 commit e81381a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/audit/run_audit.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,13 @@ python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.identify_app
1414
python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.gather_web_entry_point_info -g repo="$1"
1515
python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.classify_application_local -g repo="$1"
1616
python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.audit_issue_local_iter -g repo="$1"
17+
18+
# If in codespaces, open the results database.
19+
if [[ "${CODESPACES:-}" == "true" ]]; then
20+
RESULTS_DB=~/.local/share/seclab-taskflow-agent/seclab-taskflows/repo_context/repo_context.db
21+
if [ -f "$RESULTS_DB" ]; then
22+
if command -v code >/dev/null 2>&1; then
23+
code "$RESULTS_DB"
24+
fi
25+
fi
26+
fi

0 commit comments

Comments
 (0)