Audit all pinned dependencies and preserve release evidence
myfileagent-python-ci/pipeline/head This commit looks good

This commit is contained in:
Codex
2026-11-07 21:44:33 +00:00
parent c1cd3ad9af
commit 88f3bb0d0a
4 changed files with 17 additions and 8 deletions
+2 -2
View File
@@ -2,13 +2,13 @@ pipeline {
agent { label 'assignment8-trusted' }
options { disableConcurrentBuilds(); timeout(time: 20, unit: 'MINUTES'); timestamps(); skipDefaultCheckout() }
stages {
stage('Checkout') { steps { checkout scm } }
stage('Checkout') { steps { deleteDir(); checkout scm; sh 'mkdir -p reports' } }
stage('Unit tests and dependency audit') {
steps { dir('secure-delivery/v1') { sh '''set -eu
python3 -m venv .test-venv
.test-venv/bin/pip install -r requirements.txt pip-audit==2.10.1
.test-venv/bin/python -m unittest -v
.test-venv/bin/pip-audit -r requirements.txt
.test-venv/bin/pip-audit --disable-pip --no-deps -r requirements.txt -f json -o "$WORKSPACE/reports/dependency-audit.json"
''' } }
}
stage('Secret scan') { steps { sh 'sh secure-delivery/scan-secrets.sh' } }