Skip to content

Commit ac4ee6b

Browse files
authored
Modify dhscanner clone step in workflow
Updated the clone command to specify the v1.0.0 branch and added a readiness check for dhscanner.
1 parent fdd1c73 commit ac4ee6b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎.github/workflows/dhscanner-sast.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,20 @@ jobs:
2121
steps:
2222
- name: clone dhscanner (with submodules)
2323
run: |
24-
git clone --recurse-submodules https://github.com/OrenGitHub/dhscanner
24+
# Upstream main dropped compose.rel.*.yaml; docs still point at main.
25+
git clone --recurse-submodules --branch v1.0.0 \
26+
https://github.com/OrenGitHub/dhscanner
2527
cd dhscanner
2628
docker compose -f compose.rel.x64.yaml up -d
29+
for i in $(seq 1 60); do
30+
if (echo >/dev/tcp/127.0.0.1/443) >/dev/null 2>&1; then
31+
exit 0
32+
fi
33+
sleep 5
34+
done
35+
echo "dhscanner did not become ready on :443"
36+
docker compose -f compose.rel.x64.yaml ps
37+
exit 1
2738
2839
- name: checkout specific tag
2940
uses: actions/checkout@v4

0 commit comments

Comments
 (0)