shreyansh1814/Harness STO Security Scan

Run security scans using Harness Security Testing Orchestration (STO)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
harness-tokenHarness Personal Access Token or Service Account Tokenyes
harness-domainHarness domain (e.g., https://app.harness.io)nohttps://app.harness.io
harness-org-idHarness Organization IDyes
harness-project-idHarness Project IDyes
scannerScanner to use (bandit, snyk, aqua_trivy, grype, sonarqube, checkmarx, etc.)yes
scan-modeScanner execution mode: • orchestration - Plugin runs scanner and ingests results (default) • ingestion - Upload pre-generated scan results file • extraction - Fetch results from scanner's API/platform noorchestration
scan-configScanner configuration profile: • default - Use scanner's cloud/SaaS service (default) • self-hosted - Use self-hosted scanner instance • Scanner-specific values - See scanner documentation nodefault
target-typeType of scan: repository, container, instance, or configurationnorepository
scanner-access-tokenScanner API token (for Snyk, Checkmarx, SonarQube, etc.)no
scanner-access-idScanner username or access ID (for scanners requiring both ID and token)no
scanner-domainScanner domain (for self-hosted scanners like SonarQube, Checkmarx)no
scanner-regionScanner service region (for cloud-based scanners with regional deployments)no
scanner-project-nameProject name in scanner (for Checkmarx, SonarQube, etc.)no
workspacePath to code to scan (relative to GitHub workspace, for repository scans)no.
target-nameTarget name for tracking (auto-detected from repository if not provided)no
target-variantTarget variant/branch for tracking (auto-detected from branch if not provided)no
image-nameContainer image name/repository (for container scans, e.g., myapp, org/myapp)no
image-tagContainer image tag or digest (for container scans, e.g., latest, v1.2.3, sha256:...)no
image-domainContainer registry domain (for container scans, e.g., docker.io, gcr.io)no
image-typeContainer image type: docker_v2, local_image, aws_ecr, jfrog_artifactory, etc.nodocker_v2
image-access-idContainer registry username (for private registries)no
image-access-tokenContainer registry password or token (for private registries)no
instance-domainInstance domain to scan (for instance/DAST scans, e.g., app.example.com)no
instance-protocolInstance protocol (for instance scans, e.g., https, http)nohttps
instance-pathInstance path (for instance scans, e.g., /api)no
tool-argsAdditional command-line arguments to pass to the scannerno
docker-modeDocker execution mode: with-docker-in-docker or without-docker-in-dockerno
capture-outputCapture scan output variables to filenotrue
output-filePath to write scan output variables (relative to workspace)noscan-output.env
fail-on-severityFail build on this severity or higher (CRITICAL, HIGH, MEDIUM, LOW, NONE)noNONE
show-summaryDisplay vulnerability summary in logsnotrue
docker-image-tagTag for the Harness scanner Docker imagenolatest
scanner-envAdditional environment variables for advanced/beta features (KEY=value format, one per line). Use this for variables not yet available as explicit inputs. Common advanced variables: • SCANNER_TEAM_NAME - Team name in scanner platform • SCANNER_VERIFY_SSL - SSL verification (true/false) • SCANNER_AUTH_TYPE - Authentication method • SCANNER_API_VERSION - Scanner API version • SCANNER_EXCLUDE - Files/paths to exclude from scan • TOOL_TIMEOUT - Scanner timeout in seconds Example: scanner-env: | SCANNER_TEAM_NAME=security-team SCANNER_VERIFY_SSL=false SCANNER_EXCLUDE=*.test.js,docs/** TOOL_TIMEOUT=600 no
namedescription
scan-idScan job ID
statusScan status (Succeeded/Failed)
total-issuesTotal number of issues found
criticalNumber of CRITICAL issues
highNumber of HIGH issues
mediumNumber of MEDIUM issues
lowNumber of LOW issues
output-file-pathFull path to the output file
execution-urlURL of the GitHub Actions run that orchestrated this scan