Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Allow whitesourceOrgToken to be defined by the env var WHITESOURCE_PASSWORD #29

Merged
merged 1 commit into from
Jan 11, 2018
Merged
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
2 changes: 1 addition & 1 deletion src/main/scala/sbtwhitesource/WhiteSourcePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ object WhiteSourcePlugin extends AutoPlugin {
if (whitesourceFailOnError.value) sys.error(msg) else log.debug(msg)
""
}
(whitesourceOrgToken in ThisBuild).?.value getOrElse pass
(whitesourceOrgToken in ThisBuild).?.value orElse sys.env.get("WHITESOURCE_PASSWORD") getOrElse pass
},
whitesourceCheckPolicies :=
new CheckPoliciesAction(
Expand Down