@freshworks/shiftleft-tools 1.1.19 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@freshworks/shiftleft-tools",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"description": "CLI for managing Cursor rules/skills and Postman test infrastructure across Java Spring Boot and Node.js/Express projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -147,6 +147,12 @@ CONSOLIDATED_HTML="$REPORTS_DIR/consolidated-${ENV}-${TIMESTAMP}.html"
|
|
|
147
147
|
STATUS=$([ "$TEST_RESULT" -eq 0 ] && echo 'PASSED' || echo 'FAILED')
|
|
148
148
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
149
149
|
|
|
150
|
+
# Ensure boto3 is available for health publishing (gated by SHIFTLEFT_PUBLISH_METRICS)
|
|
151
|
+
if [ "${SHIFTLEFT_PUBLISH_METRICS:-}" = "true" ]; then
|
|
152
|
+
python3 -c "import boto3" 2>/dev/null || \
|
|
153
|
+
python3 -m pip install "boto3>=1.28.0" --quiet --user 2>/dev/null || true
|
|
154
|
+
fi
|
|
155
|
+
|
|
150
156
|
python3 "$SCRIPT_DIR/../lib/report_generator.py" consolidated "$CONSOLIDATED_HTML" \
|
|
151
157
|
--env "$ENV" \
|
|
152
158
|
--timestamp "$TIMESTAMP" \
|
|
@@ -219,17 +219,22 @@ fi
|
|
|
219
219
|
echo ""
|
|
220
220
|
echo -e "${CYAN}Phase 5: Combined Quality Report${NC}"
|
|
221
221
|
|
|
222
|
-
# Install Python dependencies if needed (defusedxml for XXE protection)
|
|
222
|
+
# Install Python dependencies if needed (defusedxml for XXE protection, boto3 for health publishing)
|
|
223
223
|
if [ "$SKIP_REPORT" = false ] || [ "$SKIP_COVERAGE" = false ]; then
|
|
224
224
|
echo -e "${YELLOW}Installing Python dependencies...${NC}"
|
|
225
|
+
python3 -m pip install --upgrade pip >/dev/null 2>&1
|
|
225
226
|
if [ -f "$PROJECT_ROOT/requirements.txt" ]; then
|
|
226
|
-
python3 -m pip install --upgrade pip >/dev/null 2>&1
|
|
227
227
|
python3 -m pip install -r "$PROJECT_ROOT/requirements.txt" >/dev/null 2>&1 || {
|
|
228
228
|
echo -e "${RED}Failed to install Python dependencies${NC}"
|
|
229
229
|
exit 1
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
else
|
|
232
|
+
# Fallback: ensure minimum deps when requirements.txt absent or predates boto3 addition
|
|
233
|
+
python3 -m pip install "defusedxml>=0.7.1" "boto3>=1.28.0" >/dev/null 2>&1 || true
|
|
232
234
|
fi
|
|
235
|
+
# Ensure boto3 present even if requirements.txt predates health-publishing feature
|
|
236
|
+
python3 -c "import boto3" 2>/dev/null || python3 -m pip install "boto3>=1.28.0" >/dev/null 2>&1 || true
|
|
237
|
+
echo -e "${GREEN}Python dependencies installed${NC}"
|
|
233
238
|
fi
|
|
234
239
|
|
|
235
240
|
if [ "$SKIP_REPORT" = false ]; then
|