Skip to content

Commit 878faef

Browse files
Merge pull request #45 from kevinbackhouse/view-results
Automatically open results DB
2 parents 4bced23 + 6319a16 commit 878faef

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

scripts/audit/run_audit.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,15 @@ 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+
set +e
19+
20+
# If in codespaces, open the results database.
21+
if [ -v CODESPACES ]; then
22+
RESULTS_DB=~/.local/share/seclab-taskflow-agent/seclab-taskflows/repo_context/repo_context.db
23+
if [ -f "$RESULTS_DB" ]; then
24+
if command -v code >/dev/null 2>&1; then
25+
code "$RESULTS_DB"
26+
fi
27+
fi
28+
fi

0 commit comments

Comments
 (0)