Skip to content

Commit c710be1

Browse files
Change scripts so that they work from the main directory of the repo.
1 parent 4d8c3db commit c710be1

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/run_audit.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ if [ -z "$1" ]; then
99
exit 1;
1010
fi
1111

12-
./run_seclab_agent.sh -t seclab_taskflows.taskflows.audit.fetch_source_code -g repo=$1
13-
./run_seclab_agent.sh -t seclab_taskflows.taskflows.audit.identify_applications -g repo=$1
14-
./run_seclab_agent.sh -t seclab_taskflows.taskflows.audit.gather_web_entry_point_info -g repo=$1
15-
./run_seclab_agent.sh -t seclab_taskflows.taskflows.audit.classify_application_local -g repo=$1
16-
./run_seclab_agent.sh -t seclab_taskflows.taskflows.audit.audit_issue_local_iter -g repo=$1
12+
python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.fetch_source_code -g repo=$1
13+
python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.identify_applications -g repo=$1
14+
python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.gather_web_entry_point_info -g repo=$1
15+
python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.classify_application_local -g repo=$1
16+
python -m seclab_taskflow_agent -t seclab_taskflows.taskflows.audit.audit_issue_local_iter -g repo=$1

src/run_seclab_agent.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ if [ ! -f ".env" ]; then
66
fi
77

88
mkdir -p logs
9-
mkdir -p data
109

1110
docker run -i \
1211
--mount type=bind,src="$PWD",dst=/app \
13-
-e GH_TOKEN="$GH_TOKEN" -e AI_API_TOKEN="$AI_API_TOKEN" "ghcr.io/githubsecuritylab/seclab-taskflow-agent" "$@"
12+
--mount type=bind,src="./logs",dst=/root/.local \
13+
-e GH_TOKEN="$GH_TOKEN" -e AI_API_TOKEN="$AI_API_TOKEN" --entrypoint /bin/bash \
14+
"ghcr.io/githubsecuritylab/seclab-taskflow-agent" \
15+
-c "pip install -q -e /app ; $*"

0 commit comments

Comments
 (0)