Skip to content

Commit

Permalink
use https git url when GITHUB_TOKEN is set
Browse files Browse the repository at this point in the history
  • Loading branch information
dwickern committed Jun 17, 2024
1 parent e3ceb8d commit 72e4922
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ libraryDependencies ++= {
// configure github page
enablePlugins(SphinxPlugin, SiteScaladocPlugin, GhpagesPlugin, SbtPlugin)

git.remoteRepo := "[email protected]:sbt/sbt-native-packager.git"
git.remoteRepo := {
sys.env.get("GITHUB_TOKEN") match {
case Some(token) => s"https://x-access-token:$token@github.com/sbt/sbt-native-packager"
case None => "[email protected]:sbt/sbt-native-packager.git"
}
}

// scripted test settings
scriptedLaunchOpts += "-Dproject.version=" + version.value
Expand Down

0 comments on commit 72e4922

Please sign in to comment.