Skip to content

Commit 18a693c

Browse files
committed
make sure to download the latest python package
1 parent 8322aed commit 18a693c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

terraform/run_pipeline.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ mkdir results_html_web
1515
cp /tmp/it.netauto.firewall-audit-results/audit_settings.yaml ./
1616

1717
# Install audit tool
18-
echo "[INFO] Installing sophos_firewall_audit..."
19-
gh release download v1.0.14 --repo github.com/sophos/sophos-firewall-audit
20-
pip install sophos_firewall_audit-1.0.14-py3-none-any.whl
18+
LATEST_TAG=$(gh release list --repo github.com/sophos/sophos-firewall-audit --limit 1 --json tagName | jq -r '.[0].tagName' 2>/dev/null)
19+
echo "[INFO] Installing sophos_firewall_audit version $LATEST_TAG..."
20+
gh release download $LATEST_TAG --repo github.com/sophos/sophos-firewall-audit
21+
pip install sophos_firewall_audit-$LATEST_TAG-py3-none-any.whl
2122

2223
# Run audit
2324
echo "[INFO] Running audit tool..."

0 commit comments

Comments
 (0)