T09 · Insecure Skill Coding Practices
- Location
scripts/capabilities/publish/service.py:240- Finding
Documented Dry-Run Requirement Is Not Enforced Before Product Publishing
- Content
View full analysis
PUBLISH_LIMIT else "") + "\n确认后去掉 `--dry-run` 执行正式铺货。" ) return { "success": True, "markdown": markdown, "result": PublishResult(success=True, submitted_count=preview_count), "origin_count": origin_count, "_api_request": api_preview, "_api_response": None, } channel = CHANNEL_MAP.get(target_shop.channel) if not channel: return { "success": False, "markdown": f"❌ 店铺「{target_shop.name}」的渠道「{target_shop.channel}」无法识别,请联系客服确认。", "result": PublishResult(success=False, error_message=f"未知渠道: {target_shop.channel}"), "origin_count": origin_count, "_api_request": None, "_api_response": None, } pub_result, api_req, api_resp = publish_items( item_ids, shop_code, channel=chann ...[truncated 2139 chars]- Remediation
View remediation
