mirror of
https://github.com/open-gitagent/langship.sh.git
synced 2026-08-03 07:21:04 +02:00
feat: add SAST and Image Scan node types with configuration forms
- Implemented SAST node type for static analysis with configurable tools (Trivy, Semgrep, Gitleaks, SonarCloud, custom). - Added Image Scan node type for scanning built container images for CVEs and secrets. - Enhanced NodeRow component to display scan results and push summaries. - Updated node catalog to include new node types with default configurations.
This commit is contained in:
@@ -15,6 +15,8 @@ import {
|
||||
TestTube2,
|
||||
Gauge,
|
||||
ShieldCheck,
|
||||
ShieldAlert,
|
||||
Container,
|
||||
Pause,
|
||||
Rocket,
|
||||
ArrowUpFromLine,
|
||||
@@ -133,6 +135,54 @@ export const CATALOG: CatalogEntry[] = [
|
||||
},
|
||||
group: "gate",
|
||||
},
|
||||
{
|
||||
type: "flow-nodes-base.imageScan",
|
||||
label: "Image Scan",
|
||||
description:
|
||||
"Scan the BUILT container image for CVEs, secrets, and base-image vulns. Pulls from the local registry and gates on severity.",
|
||||
icon: Container,
|
||||
color: "bg-fuchsia-600",
|
||||
outputs: 1,
|
||||
defaults: {
|
||||
tool: "trivy",
|
||||
severityThreshold: "HIGH",
|
||||
failOnFinding: true,
|
||||
timeoutSeconds: 600,
|
||||
insecure: true,
|
||||
registryUsername: "",
|
||||
registryPassword: "",
|
||||
// imageRef left empty → defaults to upstream __build.image
|
||||
// custom-only:
|
||||
image: "",
|
||||
command: "",
|
||||
},
|
||||
group: "gate",
|
||||
},
|
||||
{
|
||||
type: "flow-nodes-base.sast",
|
||||
label: "SAST",
|
||||
description:
|
||||
"Static analysis: scan the agent repo for vulnerabilities, secrets, and quality issues. Pluggable tool — Trivy / Semgrep / Gitleaks / SonarCloud / custom.",
|
||||
icon: ShieldAlert,
|
||||
color: "bg-rose-500",
|
||||
outputs: 1,
|
||||
defaults: {
|
||||
tool: "trivy",
|
||||
severityThreshold: "HIGH",
|
||||
failOnFinding: true,
|
||||
timeoutSeconds: 600,
|
||||
// sonar-only:
|
||||
sonarHost: "https://sonarcloud.io",
|
||||
organization: "",
|
||||
projectKey: "",
|
||||
sonarToken: "",
|
||||
branchName: "",
|
||||
// custom-only:
|
||||
image: "",
|
||||
command: "",
|
||||
},
|
||||
group: "gate",
|
||||
},
|
||||
{
|
||||
type: "flow-nodes-base.push",
|
||||
label: "Push",
|
||||
|
||||
Reference in New Issue
Block a user