GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.datadoghq.com — Set up SCA in your repositories For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/software_composition_analysis/setup_static.md.
A documentation index is available at /llms.txt.
Set up SCA in your repositoriesThis product is not supported for your selected Datadog site. (). OverviewDatadog Software Composition Analysis (SCA) scans your repositories for open-source libraries and detects known security vulnerabilities before you ship to production. To get started:
Supported languages and dependency manifestsDatadog SCA scans libraries in the following languages using dependency manifests (such as lockfiles and other supported manifest files) to identify vulnerable dependencies.
Static SCA detects vulnerabilities in the libraries listed in supported dependency manifests and lockfiles. Static SCA doesn’t detect vulnerabilities in language runtimes other than Go and .NET, such as the PHP interpreter or the JVM. For coverage of language runtimes, see Detection coverage by component type. Note: If both a Lockfile-less scanningDatadog SCA scans manifest files only when no supported lockfile is detected. When a lockfile is present, it takes precedence and the manifest is not scanned.
Supported sections:
Because manifests can declare version ranges (such as ^2.3.4 or >=1.0,<2) rather than pinned versions, Datadog resolves each range by selecting the newest published version that satisfies the range. Pre-release versions are excluded.Select where to run static SCA scansBy default, scans run when you commit changes that update supported dependency manifests or lockfiles in an enabled repository. You can also run SCA in your CI pipelines; CI jobs are supported for Scan with Datadog-hosted scanningYou can run Datadog Static SCA scans directly on Datadog infrastructure. Supported repository types include:
To get started, navigate to the Code Security page. Datadog-hosted SCA scanning is not supported for repositories that contain file names longer than 255 characters. For these cases, scan using CI pipelines. Scan in CI pipelinesDatadog Software Composition Analysis runs in your CI pipelines using the You must scan your default branch at least once before results appear in Code Security. See instructions based on your CI provider: If your Java project checks third-party JARs directly into the repository instead of using a Maven or Gradle manifest, see Scan Java JAR directories. Select your source code management providerRegardless of the scanning mode you use, connect your source code management provider to enable native features such as inline code snippets and pull request comments. Datadog SCA supports all providers and offers native support for GitHub, GitLab, Azure DevOps, and Bitbucket Cloud Premium. Configure a GitHub App with the GitHub integration tile and set up the source code integration to enable inline code snippets and pull request comments. When installing a GitHub App, the following permissions are required to enable certain features:
See the GitLab source code setup instructions to connect GitLab to Datadog. Both GitLab.com and Self-Managed instances are supported. Note: Your Azure DevOps integrations must be connected to a Microsoft Entra tenant. Azure DevOps Server is not supported. See the Azure source code setup instructions to connect Azure DevOps repositories to Datadog. See the Bitbucket source code setup instructions to connect Bitbucket Cloud workspaces to Datadog. If you are using another source code management provider, configure SCA to run in your CI pipelines using the Link findings to Datadog services and teamsDatadog associates code and library scan results with Datadog services and teams to automatically route findings to the appropriate owners. This enables service-level visibility, ownership-based workflows, and faster remediation. For Static Code Analysis, Software Composition Analysis, Secret Scanning, and IaC Security findings, mapped services also provide runtime context. To determine the services that a finding belongs to, Datadog combines the results of several mapping sources. Each source can map a finding to one or more services, and Datadog keeps every valid mapping instead of selecting a single source or service:
A mapping means that the finding’s file is related to the service. It does not confirm that the file is part of the deployed version of the service. Mappings apply at the directory level, so files in the same directory map to the same services. For repositories that Datadog identifies as forks, Datadog uses only Software Catalog code locations. Using service definitions that include code locations in the Software Catalog is the only way to explicitly control how findings are mapped to services. Code locations add mappings; they do not remove mappings from the other sources. The other sources are not user-configurable and depend on data from other Datadog products, such as APM and Source Code Integration. Mapping using the Software Catalog (recommended)Services in the Software Catalog identify their codebase content using the
If you want all the files in a repository to be associated with a service, you can use the glob The schema for this field is described in the Software Catalog entity model. Datadog goes through all Software Catalog definitions and checks whether the finding’s file path matches. For a finding to be mapped to a service through Some findings might not contain a file path. In those cases, Datadog cannot evaluate Services defined with a Software Catalog schema v2.x do not support codeLocations. Existing definitions can be upgraded to the v3 schema in the Software Catalog. After migration is completed, changes might take up to 24 hours to apply to findings. If you are unable to upgrade to v3, Datadog maps findings with the other sources described in this section. These rely on less precise heuristics, so accuracy might vary depending on the Code Security product and your use of other Datadog features. Example (v3 schema)SAST findingIf a vulnerability appeared in SCA findingIf a library was declared in Instead, if it was declared in Datadog maps a finding to every service whose code locations match the finding's file path. Service inference from file paths or repository namesWhen none of the other mapping sources returns a service, Datadog inspects naming patterns in the repository and file paths. Datadog evaluates whether:
When using the finding’s file path, Datadog performs a reverse search on each path segment until it finds a matching service or exhausts all options. For example, if a finding occurs in When all options have been tried, Datadog checks whether the repository name, This mechanism helps findings receive a service attribution when no other mapping source applies. Link findings to teams through Code OwnersIf Datadog links your finding to a service, then the team that owns that service (if defined) is associated with that finding automatically. Regardless of whether Datadog successfully links a finding to a service (and a Datadog team), Datadog uses the You must accurately map your Git provider teams to your Datadog Teams for team attribution to function properly. Upload third-party SBOM to DatadogDatadog recommends using the Datadog SBOM generator, but it is also possible to ingest a third-party SBOM. You can upload SBOMs generated by other tools if they meet these requirements:
Third-party SBOM files are uploaded to Datadog using the You can find optional arguments and other information in the You can use the following command to upload your third-party SBOM. Ensure the environment variables If you already have automatic scanning enabled for a repository, a manual upload will replace any existing result for that commit. Filter by reachable vulnerabilitiesDatadog offers static reachability analysis to help teams assess whether vulnerable code paths in dependencies are referenced within their application code. This capability supports more effective prioritization by identifying vulnerabilities that are statically unreachable and therefore present minimal immediate risk. This functionality is supported only when using the Datadog SBOM Generator with the Reachability analysis is available exclusively for Java projects and applies only to a defined set of vetted security advisories. Vulnerabilities not included in this set are excluded from reachability evaluation.
Supported advisoriesStatic reachability analysis is available for the following advisories: Data RetentionDatadog stores findings in accordance with our Data Retention Periods. Datadog does not store or retain customer source code. Further ReadingMore about SCA: Other Code Security scanning for your repositories: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |