Skip to content

Commit

Permalink
Remove hardcoded secrets and improve CI configuration
Browse files Browse the repository at this point in the history
Replaced hardcoded secrets access with dynamic property checks to
enhance security. Deleted unnecessary scripts and configurations for
handling secrets, streamlining the build process.
  • Loading branch information
saschpe committed Sep 12, 2024
1 parent 6a2b377 commit 1ae40d4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 114 deletions.
32 changes: 0 additions & 32 deletions buildSrc/build.gradle.kts

This file was deleted.

Binary file removed buildSrc/src/main/kotlin/Secrets.kt.enc
Binary file not shown.
16 changes: 9 additions & 7 deletions customtabs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,16 @@ publishing {
}
}

repositories {
maven {
name = "sonatype"
credentials {
username = Secrets.Sonatype.user
password = Secrets.Sonatype.apiKey
if (hasProperty("sonatypeUser") && hasProperty("sonatypePass")) {
repositories {
maven {
name = "sonatype"
credentials {
username = property("sonatypeUser") as String
password = property("sonatypePass") as String
}
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
}
}
Expand Down
75 changes: 0 additions & 75 deletions scripts/secret

This file was deleted.

0 comments on commit 1ae40d4

Please sign in to comment.