Skip to main content
Version: 1.7

Dependency Track for Python

Configuring Dependency Track for Python in pre-build or post build task creates a bill of materials from Python projects and environments and uploads it to D-track for Component Analysis to identify and reduce risk in the software supply chain.

Prerequisite: Make sure you have set up an account in dependency track or get the API keys from an admin.

  1. On the Edit build pipeline page, select the Pre-Build Stage (or Post-Build Stage).
  2. Click + Add task.
  3. Select Dependency track for Python from PRESET PLUGINS.
  • Enter a relevant name in the Task name field. It is a mandatory field.
  • Enter a descriptive message for the task in the Description field. It is an optional field.
  • Provide a value for the input variable.
    Note: The value may be any of the values from the previous build stages, a global variable, or a custom value.
VariableFormatDescription
ProjectManifestTypeStringType of your Python project manifest which is used to build cycloneDx Software Bill of Materials (SBOM). E.g., PIP, Poetry etc.
RelativePathToPoetryLockStringPath to your poetry.lock file inside your project
RelativePathToPipfileStringPath to your Pipfile.lock file inside your project
RelativePathToRequirementTxtStringPath to your requirements.txt file inside your project
DTrackEndpointStringAPI endpoint of your dependency track account
DTrackProjectNameStringName of your dependency track project
DTrackProjectVersionStringVersion of dependency track project
DTrackApiKeyStringAPI key of your dependency track account
CheckoutPathStringCheckout path of Git material
  • Trigger/Skip Condition refers to a conditional statement to execute or skip the task. You can select either:

    • Set trigger conditions or
    • Set skip conditions

  • Click Update Pipeline.