Skip to content

Commit 465b17f

Browse files
ci: passing secrets to workflows. (#4096)
* ci: fix text not replaced Signed-off-by: Thomas Poignant <[email protected]> * passing secrets for kotlin Signed-off-by: Thomas Poignant <[email protected]> * passing secrets for python Signed-off-by: Thomas Poignant <[email protected]> * passing secrets for root release Signed-off-by: Thomas Poignant <[email protected]> --------- Signed-off-by: Thomas Poignant <[email protected]>
1 parent 7bd2ee8 commit 465b17f

File tree

5 files changed

+28
-5
lines changed

5 files changed

+28
-5
lines changed

.github/workflows/release-bump-modules.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
VERSION: ${{ inputs.version }}
5050
MODULE_PATH: ${{ inputs.modulePath }}
5151
with:
52-
branch: bump-module-${MODULE_PATH}-${VERSION}
53-
title: "chore(dependency): Bump module ${MODULE_PATH} ${VERSION}"
52+
branch: bump-module-${{ env.MODULE_PATH}}-${{ env.VERSION }}
53+
title: "chore(dependency): Bump module ${{ env.MODULE_PATH }} ${{ env.VERSION }}"
5454
body: |
55-
Automated pull request to bump module ${MODULE_PATH} ${VERSION}
55+
Automated pull request to bump module ${{ env.MODULE_PATH}} ${{ env.VERSION }}
5656
commit-message: "chore(dependency): Bump module ${MODULE_PATH} ${VERSION}"
5757
assignees: thomaspoignant
5858
draft: false

.github/workflows/release-kotlin-provider.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
workflow_call:
44
inputs:
55
version: { type: string, required: false }
6+
secrets:
7+
OSSRH_USERNAME: { required: true }
8+
OSSRH_PASSWORD: { required: true }
9+
GPG_SIGNING_KEY: { required: true }
10+
GPG_SIGNING_KEY_PASSWORD: { required: true }
11+
GPG_SIGNING_KEY_ID: { required: true }
612

713
permissions:
814
actions: read

.github/workflows/release-please.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,29 @@ jobs:
6969
needs: release-please
7070
with:
7171
version: ${{ needs.release-please.outputs.provider_python_version }}
72+
secrets:
73+
pypi_token: ${{ secrets.PYPI_TOKEN }}
7274

7375
kotlin-provider-release:
7476
if: ${{ needs.release-please.outputs.provider_kotlin_released == 'true' }}
7577
uses: ./.github/workflows/release-kotlin-provider.yml
7678
needs: release-please
7779
with:
7880
version: ${{ needs.release-please.outputs.provider_kotlin_version }}
81+
secrets:
82+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
83+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
84+
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
85+
GPG_SIGNING_KEY_PASSWORD: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}
86+
GPG_SIGNING_KEY_ID: ${{ secrets.GPG_SIGNING_KEY_ID }}
7987

8088
root-release:
8189
if: ${{ needs.release-please.outputs.root_released == 'true' }}
8290
uses: ./.github/workflows/release.yml
8391
needs: release-please
8492
with:
8593
version: ${{ needs.release-please.outputs.root_version }}
94+
secrets:
95+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
96+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
97+
PERSONAL_GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

.github/workflows/release-python-provider.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
workflow_call:
55
inputs:
66
version: { type: string, required: true }
7-
7+
secrets:
8+
pypi_token: { required: true }
89
permissions:
910
actions: read
1011
contents: read
@@ -27,4 +28,4 @@ jobs:
2728
uses: JRubics/poetry-publish@4b3306307f536bbfcb559603629b3b4f6aef5ab8 # v2.1
2829
with:
2930
package_directory: ./openfeature/providers/python-provider
30-
pypi_token: ${{ secrets.PYPI_TOKEN }}
31+
pypi_token: ${{ secrets.pypi_token }}

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
workflow_call:
44
inputs:
55
version: { type: string, required: true }
6+
secrets:
7+
DOCKER_USERNAME: { required: true }
8+
DOCKER_PASSWORD: { required: true }
9+
PERSONAL_GITHUB_TOKEN: { required: true }
610

711
permissions:
812
contents: read

0 commit comments

Comments
 (0)