Skip to content

Commit cbe1e4b

Browse files
committed
list secrets explicitly
1 parent 293c21d commit cbe1e4b

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ on:
66
jobs:
77
test:
88
uses: ./.github/workflows/test.yml
9-
secrets: inherit
9+
secrets:
10+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
11+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ on:
1616
jobs:
1717
deploy:
1818
runs-on: k8s-runner-linux
19-
env:
20-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2119
steps:
2220
- uses: actions/checkout@v4
2321
- uses: ./.github/actions/setup-maven
@@ -26,5 +24,7 @@ jobs:
2624
maven-version: '3.6.3'
2725
ossrh-username: ${{ secrets.OSSRH_USERNAME }}
2826
ossrh-password: ${{ secrets.OSSRH_PASSWORD }}
29-
- run: bash ./gen-gpg-key.sh
27+
- env:
28+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
29+
run: bash ./gen-gpg-key.sh
3030
# - run: mvn deploy -Prelease

.github/workflows/tag.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ on:
1010
jobs:
1111
test:
1212
uses: ./.github/workflows/deploy.yml
13-
secrets: inherit
13+
secrets:
14+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
15+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
16+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)