Audit all pinned dependencies and preserve release evidence
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
This commit is contained in:
@@ -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' } }
|
||||
|
||||
Reference in New Issue
Block a user