This pipeline installs Python dependencies via your Azure Artifacts feed and runs pip-audit for vulnerability scanning. It does not promote packages to any view; packages will remain cached in the feed's @Local view.
-
Azure Artifacts Feed
- Project:
CTDP-SLT - Feed:
CDP-TST - Ensure PyPI is configured as an upstream source so installs through the feed cache into
@Local.
- Project:
-
Pipeline Configuration
- Add this
azure-pipelines.ymlto your repo. - Enable Allow scripts to access the OAuth token in pipeline settings.
- Add this
-
Permissions
- The pipeline needs read access to the feed. Typically, the project Build Service identity already has this.
-
Usage
- On PR, the pipeline will:
- Install dependencies from your feed.
- Run
pip-auditto check for vulnerabilities.
- On PR, the pipeline will:
FEED_SIMPLE_URLis set to the project-scoped feed's PyPI simple endpoint:https://pkgs.dev.azure.com/<ORG>/CTDP-SLT/_packaging/CDP-TST/pypi/simple/