Skip to content

Commit 79316c6

Browse files
committed
ci: authenticate Jenkins license provenance audit
1 parent b21f33f commit 79316c6

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎Jenkinsfile‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ pipeline {
4343
}
4444
stage('License gate') {
4545
steps {
46-
sh '''
47-
set -eu
48-
export PATH="$WORKSPACE/.ci-venv/bin:$PATH"
49-
scripts/license-gate.sh --selftest
50-
scripts/license-gate.sh
51-
scripts/audit-license-provenance.py
52-
'''
46+
withCredentials([string(credentialsId: 'github-token', variable: 'GH_TOKEN')]) {
47+
sh '''
48+
set -eu
49+
export PATH="$WORKSPACE/.ci-venv/bin:$PATH"
50+
scripts/license-gate.sh --selftest
51+
scripts/license-gate.sh
52+
scripts/audit-license-provenance.py
53+
'''
54+
}
5355
}
5456
}
5557
stage('Build') {

0 commit comments

Comments
 (0)