From 6869d0f666108a7f7d17a7e6d7cb56751de45ebc Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 10 Nov 2024 21:11:14 +0100 Subject: [PATCH] Forward secrets to pipeline template. --- .github/workflows/CompletePipeline.yml | 19 +++++++++++++------ .../_Checking_NamespacePackage_Pipeline.yml | 3 +++ .../_Checking_SimplePackage_Pipeline.yml | 3 +++ 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CompletePipeline.yml b/.github/workflows/CompletePipeline.yml index 5d74c9b8..675ebebd 100644 --- a/.github/workflows/CompletePipeline.yml +++ b/.github/workflows/CompletePipeline.yml @@ -72,6 +72,13 @@ on: required: false default: '' type: string + secrets: + PYPI_TOKEN: + description: "Token for pushing releases to PyPI." + required: false + CODACY_PROJECT_TOKEN: + description: "Token for pushing coverage results to Codacy." + required: false jobs: ConfigParams: @@ -83,9 +90,9 @@ jobs: UnitTestingParams: uses: pyTooling/Actions/.github/workflows/Parameters.yml@dev with: - package_namespace: ${{ inputs.package_namespace }} - package_name: ${{ inputs.package_name }} - python_version: ${{ inputs.unittest_python_version }} + package_namespace: ${{ inputs.package_namespace }} + package_name: ${{ inputs.package_name }} + python_version: ${{ inputs.unittest_python_version }} python_version_list: ${{ inputs.unittest_python_version_list }} system_list: ${{ inputs.unittest_system_list }} include_list: ${{ inputs.unittest_include_list }} @@ -95,9 +102,9 @@ jobs: AppTestingParams: uses: pyTooling/Actions/.github/workflows/Parameters.yml@dev with: - package_namespace: ${{ inputs.package_namespace }} - package_name: ${{ inputs.package_name }} - python_version: ${{ inputs.apptest_python_version }} + package_namespace: ${{ inputs.package_namespace }} + package_name: ${{ inputs.package_name }} + python_version: ${{ inputs.apptest_python_version }} python_version_list: ${{ inputs.apptest_python_version_list }} system_list: ${{ inputs.apptest_system_list }} include_list: ${{ inputs.apptest_include_list }} diff --git a/.github/workflows/_Checking_NamespacePackage_Pipeline.yml b/.github/workflows/_Checking_NamespacePackage_Pipeline.yml index c597b0ae..0389b9a7 100644 --- a/.github/workflows/_Checking_NamespacePackage_Pipeline.yml +++ b/.github/workflows/_Checking_NamespacePackage_Pipeline.yml @@ -10,3 +10,6 @@ jobs: with: package_namespace: pyExamples package_name: Extensions + secrets: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} diff --git a/.github/workflows/_Checking_SimplePackage_Pipeline.yml b/.github/workflows/_Checking_SimplePackage_Pipeline.yml index d24c48d0..a56af1b3 100644 --- a/.github/workflows/_Checking_SimplePackage_Pipeline.yml +++ b/.github/workflows/_Checking_SimplePackage_Pipeline.yml @@ -9,3 +9,6 @@ jobs: uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@dev with: package_name: pyDummy + secrets: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}