Skip to content

Commit ebb96f2

Browse files
Remove unnecessary withCredentials block for GITHUB_TOKEN in CodeQL Analysis stage
1 parent 4c23914 commit ebb96f2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

jenkins/Jenkinsfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,15 @@ pipeline {
2929

3030
stage('CodeQL Analysis') {
3131
steps {
32-
withCredentials([string(credentialsId: 'PAT', variable: 'GITHUB_TOKEN')]) {
33-
sh '''#!/bin/bash
34-
. venv/bin/activate
35-
echo "Base Ref (Target Branch): $CHANGE_TARGET"
36-
echo "Ref (Source Branch): $CHANGE_BRANCH"
32+
sh '''#!/bin/bash
33+
. venv/bin/activate
34+
echo "Base Ref (Target Branch): $CHANGE_TARGET"
35+
echo "Ref (Source Branch): $CHANGE_BRANCH"
3736
38-
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user
37+
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user
3938
40-
codeql-wrapper --verbose analyze ./monorepo --monorepo --upload-sarif --ref $CHANGE_BRANCH --base-ref $CHANGE_TARGET
41-
'''
42-
}
39+
codeql-wrapper --verbose analyze ./monorepo --monorepo --upload-sarif --ref $CHANGE_BRANCH --base-ref $CHANGE_TARGET
40+
'''
4341
}
4442
}
4543

0 commit comments

Comments
 (0)