File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,10 @@ runs:
7373 - name : Set build parameters
7474 shell : bash
7575 env :
76- ARTIFACTORY_DEPLOYER_ROLE : ${{ inputs.artifactory-deployer-role != '' && inputs.artifactory-deployer-role ||
76+ ARTIFACTORY_DEPLOY_REPO : ${{ inputs.artifactory-deployer-role != '' && inputs.artifactory-deployer-role ||
7777 (github.event.repository.visibility == 'public' && 'public-deployer' || 'qa-deployer') }}
7878 run : |
79- echo "ARTIFACTORY_DEPLOYER_ROLE =${ARTIFACTORY_DEPLOYER_ROLE }" >> "$GITHUB_ENV"
79+ echo "ARTIFACTORY_DEPLOY_REPO =${ARTIFACTORY_DEPLOY_REPO }" >> "$GITHUB_ENV"
8080 - uses : SonarSource/ci-github-actions/get-build-number@v1
8181 id : get_build_number
8282 - name : Vault
9191 ${{ inputs.sonar-platform != 'none' && 'development/kv/data/sonarqube-us token | SQC_US_TOKEN;' || '' }}
9292 ${{ inputs.sonar-platform != 'none' && 'development/kv/data/sonarcloud url | SQC_EU_URL;' || '' }}
9393 ${{ inputs.sonar-platform != 'none' && 'development/kv/data/sonarcloud token | SQC_EU_TOKEN;' || '' }}
94- development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_DEPLOYER_ROLE }} username | ARTIFACTORY_DEPLOY_USERNAME;
95- development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_DEPLOYER_ROLE }} access_token | ARTIFACTORY_DEPLOY_ACCESS_TOKEN;
94+ development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_DEPLOY_REPO }} username | ARTIFACTORY_DEPLOY_USERNAME;
95+ development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_DEPLOY_REPO }} access_token | ARTIFACTORY_DEPLOY_ACCESS_TOKEN;
9696 development/kv/data/sign key | SIGN_KEY;
9797 development/kv/data/sign passphrase | PGP_PASSPHRASE;
9898 development/kv/data/sign key_id | SIGN_KEY_ID;
Original file line number Diff line number Diff line change @@ -59,10 +59,17 @@ runs:
5959 - name : Set environment variables for Artifactory authentication
6060 shell : bash
6161 env :
62- ARTIFACTORY_URL : ${{ inputs.repox-artifactory-url != '' && inputs.repox-artifactory-url || format('{0}/artifactory', inputs.repox-url) }}
63- ARTIFACTORY_USERNAME : ${{ steps.secrets.outputs.vault && fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_USERNAME || '' }}
64- ARTIFACTORY_ACCESS_TOKEN : ${{ steps.secrets.outputs.vault && fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN || '' }}
65- DEVELOCITY_TOKEN : ${{ inputs.use-develocity == 'true' && steps.secrets.outputs.vault && fromJSON(steps.secrets.outputs.vault).DEVELOCITY_TOKEN || '' }}
62+ ARTIFACTORY_URL :
63+ ${{ inputs.repox-artifactory-url != '' && inputs.repox-artifactory-url || format('{0}/artifactory', inputs.repox-url) }}
64+ ARTIFACTORY_USERNAME :
65+ ${{ steps.secrets.outputs.vault && fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_USERNAME || '' }}
66+ ARTIFACTORY_ACCESS_TOKEN :
67+ ${{ steps.secrets.outputs.vault && fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN || '' }}
68+ DEVELOCITY_TOKEN :
69+ ${{ inputs.use-develocity == 'true'
70+ && steps.secrets.outputs.vault
71+ && fromJSON(steps.secrets.outputs.vault).DEVELOCITY_TOKEN
72+ || '' }}
6673 run : |
6774 if [[ "${DEVELOCITY_ACCESS_KEY:-}" == "develocity.sonar.build=" ]]; then
6875 echo "::warning title=Found invalid DEVELOCITY_ACCESS_KEY::DEVELOCITY_ACCESS_KEY should not be set manually in the environment."
You can’t perform that action at this time.
0 commit comments