Skip to content

Commit

Permalink
Fix org naming
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Logan <lindluni@github.com>
  • Loading branch information
lindluni committed Feb 27, 2024
1 parent f863b1e commit 1412e7d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def call(org, repo, branch, language, token) {
}
env.GITHUB_TOKEN = token
env.LANGUAGE = language
env.CT_TOOLS = org
env.CT_ORG = org
env.CT_REPO = repo
env.CT_REF = sprintf("refs/heads/%s", env.BRANCH)
if(env.CHANGE_ID) {
Expand Down Expand Up @@ -39,7 +39,7 @@ def call(org, repo, branch, language, token) {
echo "Uploading SARIF file"
commit=\$(git rev-parse HEAD)
"\$command" github upload-results \
--repository="${CT_TOOLS}/${CT_REPO}" \
--repository="${CT_ORG}/${CT_REPO}" \
--ref="${CT_REF}" \
--commit="\$commit" \
--sarif="${SARIF_FILE}"
Expand All @@ -52,13 +52,13 @@ def call(org, repo, branch, language, token) {
-H "Content-Length: \$sizeInBytes" \
-H "${AUTHORIZATION_HEADER}" \
-T "${DATABASE_BUNDLE}" \
"https://uploads.github.com/repos/$CT_TOOLS/$CT_REPO/code-scanning/codeql/databases/${LANGUAGE}?name=${DATABASE_BUNDLE}"
"https://uploads.github.com/repos/$CT_ORG/$CT_REPO/code-scanning/codeql/databases/${LANGUAGE}?name=${DATABASE_BUNDLE}"
else
curl --http1.0 --silent --retry 3 -X POST -H "Content-Type: application/zip" \
-H "Content-Length: \$sizeInBytes" \
-H "${AUTHORIZATION_HEADER}" \
-T "${DATABASE_BUNDLE}" \
"https://uploads.github.com/repos/$CT_TOOLS/$CT_REPO/code-scanning/codeql/databases/${LANGUAGE}?name=${DATABASE_BUNDLE}"
"https://uploads.github.com/repos/$CT_ORG/$CT_REPO/code-scanning/codeql/databases/${LANGUAGE}?name=${DATABASE_BUNDLE}"
fi
echo "Database Bundle uploaded"
'''
Expand Down

0 comments on commit 1412e7d

Please sign in to comment.