ikanban 0.4.6 → 0.4.7

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": "ikanban",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "iKanban CLI: AI and security scans of your own repo, with results filed into iKanban",
5
5
  "bin": { "ikanban": "bin/ikanban.js" },
6
6
  "files": ["bin", "lib", "hooks", "scanners", "README.md", "LICENSE.md"],
@@ -56,7 +56,7 @@ import urllib.request
56
56
  from datetime import datetime, timezone
57
57
  from pathlib import Path
58
58
 
59
- DASTSCAN_VERSION = "1.3.0"
59
+ DASTSCAN_VERSION = "1.3.1"
60
60
 
61
61
  SEVERITIES = ["critical", "high", "medium", "low", "info"]
62
62
  SEVERITY_RANK = {s: i for i, s in enumerate(SEVERITIES)}
@@ -521,9 +521,12 @@ class Pipeline:
521
521
  if not ok:
522
522
  self._off(data or "this iKanban server has no Pipelines")
523
523
 
524
- def start(self):
524
+ def start(self, url=""):
525
+ # Plan 11 H14: the URL as the running event's detail, so iKASecure's DAST targets list
526
+ # shows "Scanning…" on that target.
525
527
  self._post("pipeline-events", {"task": self.task, "stage": self.stage, "status": "running",
526
- "run": PIPE_RUN, "source": "laptop", "actor": f"ikanban-{self.stage}"})
528
+ "run": PIPE_RUN, "source": "laptop", "actor": f"ikanban-{self.stage}",
529
+ "detail": url[:300] or None})
527
530
 
528
531
  def log(self, line):
529
532
  """One progress line, sent as it happens (masked like the report). A failure only turns Pipelines off."""
@@ -553,9 +556,10 @@ def run_main(stage, main_fn, argv=None):
553
556
  pre.add_argument("--team", default=os.environ.get("IKANBAN_TEAM_ID", ""))
554
557
  pre.add_argument("--token", default=os.environ.get("VIBE_API_TOKEN", ""))
555
558
  pre.add_argument("--base-url", default=os.environ.get("IKANBAN_BASE_URL", "https://api.i-kanban.com"))
559
+ pre.add_argument("--url", default="")
556
560
  known, _ = pre.parse_known_args(raw)
557
561
  pl = Pipeline(stage, known.task, known.task_team or known.team, known.base_url, known.token)
558
- pl.start()
562
+ pl.start(known.url.strip())
559
563
  global PIPE
560
564
  PIPE = pl if pl.on else None
561
565
  try: