Skip to content

Commit bd049a0

Browse files
committed
do not put secrets on the command line
1 parent 810e4da commit bd049a0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Checkout the repo
2020
uses: actions/checkout@v2
2121
- name: Run the CI task
22-
run: ./gradlew ci -Pgradle.publish.key="$GRADLE_KEY" -Pgradle.publish.secret="$GRADLE_SECRET"
22+
run: ./gradlew ci
2323
env:
2424
GRADLE_KEY: ${{ secrets.GRADLE_KEY }}
2525
GRADLE_SECRET: ${{ secrets.GRADLE_SECRET }}

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ repositories {
2525
group = "com.gradleup"
2626
version = "0.3"
2727

28+
project.extra.set("gradle.publish.key", System.getenv("GRADLE_KEY"))
29+
project.extra.set("gradle.publish.secret", System.getenv("GRADLE_SECRET"))
30+
2831
val shadeConfiguration = configurations.create("shade")
2932

3033
dependencies {

0 commit comments

Comments
 (0)