Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/jenkins/linux/Jenkinsfile

This file was deleted.

43 changes: 0 additions & 43 deletions .github/jenkins/windows/Jenkinsfile

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/codeql-pull-request.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/codeql.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/required-workflow-verify-codeql-usage.yml

This file was deleted.

15 changes: 12 additions & 3 deletions jenkins/shared-libraries/linux/vars/ExecuteCodeQL.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def call(org, repo, branch, language, buildCommand, token, installCodeQL) {
if(!env.ENABLE_CODEQL_DEBUG) {
env.ENABLE_CODEQL_DEBUG = false
}
if(!env.GIT_COMMIT) {
env.GIT_COMMIT = ""
}
env.GITHUB_TOKEN = token
if(installCodeQL == true || installCodeQL == "true") {
env.INSTALL_CODEQL = true
Expand Down Expand Up @@ -168,13 +171,19 @@ def call(org, repo, branch, language, buildCommand, token, installCodeQL) {
"\$command" database interpret-results "${DATABASE_PATH}" ${CODEQL_THREADS_FLAG} --format=csv --output="codeql-scan-results-${LANGUAGE}.csv" "${QL_PACKS}"
echo "CSV of results generated"

if [ "${UPLOAD_RESULTS}" = true ]; then
if [ "\${UPLOAD_RESULTS}" = true ]; then
echo "Uploading SARIF file"
commit=\$(git rev-parse HEAD)
if [ "\${GIT_COMMIT}" = "" ]; then
commit=$(git rev-parse HEAD)
echo "Determined commit using git rev-parse: $commit"
else
commit="\${GIT_COMMIT}"
echo "Using GIT_COMMIT environment variable: $commit"
fi
"\$command" github upload-results \
--repository="${CT_ORG}/${CT_REPO}" \
--ref="${CT_REF}" \
--commit="\$commit" \
--commit="$commit" \
--sarif="${SARIF_FILE}"
echo "SARIF file uploaded"
fi
Expand Down