Skip to content

Commit

Permalink
Merge pull request #1398 from shitamori1272/fix/bitbucketcloud-access…
Browse files Browse the repository at this point in the history
…token

Fix: Use proper env values for Bitbucket Cloud Access Token
  • Loading branch information
orta committed Aug 8, 2023
2 parents 1616f7b + 55cc4c5 commit eb1d4f9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts
Expand Up @@ -70,15 +70,16 @@ export function bitbucketCloudCredentialsFromEnv(env: Env): BitBucketCloudCreden
}
}

if (env["DANGER_BITBUCKETCLOUD_REPOSITORY_ACCESSTOKEN"]) {
if (env["DANGER_BITBUCKETCLOUD_REPO_ACCESSTOKEN"]) {
return {
type: "REPO_ACCESS_TOKEN",
accessToken: env["DANGER_BITBUCKETCLOUD_REPOSITORY_ACCESSTOKEN"],
accessToken: env["DANGER_BITBUCKETCLOUD_REPO_ACCESSTOKEN"],
uuid,
}
}

throw new Error(
`Either DANGER_BITBUCKETCLOUD_OAUTH_KEY, DANGER_BITBUCKETCLOUD_USERNAME or DANGER_BITBUCKETCLOUD_REPOSITORY_ACCESSTOKEN is not set`
`Either DANGER_BITBUCKETCLOUD_OAUTH_KEY, DANGER_BITBUCKETCLOUD_USERNAME or DANGER_BITBUCKETCLOUD_REPO_ACCESSTOKEN is not set`
)
}

Expand Down

0 comments on commit eb1d4f9

Please sign in to comment.