Skip to content

Commit 1b377f1

Browse files
authored
Remove docker credentials (#2)
Remove the unused docker credentials
1 parent 2dccab7 commit 1b377f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jenkins/jenkins-build-and-scan/Jenkinsfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ spec:
3030
}
3131

3232
environment {
33-
DOCKER = credentials('docker-repository-credentials')
3433
SECURE_API_KEY = credentials('sysdig-secure-api-credentials')
3534
}
3635

@@ -63,7 +62,7 @@ EOF
6362
stage('Scanning Image') {
6463
steps {
6564
container("inline-scan") {
66-
sh "/sysdig-inline-scan.sh -k ${SECURE_API_KEY_PSW} --storage-type oci-dir --storage-path \"${WORKSPACE}/oci\" ${IMAGE_NAME}"
65+
sh "/sysdig-inline-scan.sh --sysdig-token ${SECURE_API_KEY_PSW} --storage-type oci-dir --storage-path \"${WORKSPACE}/oci\" ${IMAGE_NAME}"
6766
}
6867
}
6968
}

0 commit comments

Comments
 (0)