Skip to content

Commit c61e676

Browse files
committed
ci: use authenticated GitHub SCM token for provenance
1 parent 7169a9c commit c61e676

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Jenkinsfile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ pipeline {
4343
}
4444
stage('License gate') {
4545
steps {
46-
withCredentials([string(credentialsId: 'github-token', variable: 'GH_TOKEN')]) {
46+
withCredentials([usernamePassword(credentialsId: 'github-https-token',
47+
usernameVariable: 'GITHUB_USER',
48+
passwordVariable: 'GH_TOKEN')]) {
4749
sh '''
4850
set -eu
4951
export PATH="$WORKSPACE/.ci-venv/bin:$PATH"

0 commit comments

Comments
 (0)