diff --git a/action.yml b/action.yml index 4972d11..a43d32b 100644 --- a/action.yml +++ b/action.yml @@ -37,6 +37,10 @@ inputs: required: false default: "2147483647" description: "Maximum number of issues allowed for the analysis to succeed" + registry-address: + required: false + default: "gh" + description: "Alternative registry address (e.g. artprod.mycompany/)" tool: required: false description: >- @@ -224,7 +228,7 @@ runs: - name: "Set Codacy CLI version" shell: bash - run: echo "CODACY_ANALYSIS_CLI_VERSION=7.9.7" >> $GITHUB_ENV + run: echo "CODACY_ANALYSIS_CLI_VERSION=7.9.10" >> $GITHUB_ENV - name: "Set script path environment variable" shell: bash run: echo "CLI_SCRIPT_PATH=${{ github.action_path }}/codacy-analysis-cli.sh" >> $GITHUB_ENV @@ -260,7 +264,8 @@ runs: $(if [ "${{ inputs.fail-if-incomplete }}" == "true" ]; then echo "--fail-if-incomplete"; fi) \ $(if [ "${{ inputs.allow-network }}" == "true" ]; then echo "--allow-network"; fi) \ $(if [ "${{ inputs.force-file-permissions }}" == "true" ]; then echo "--force-file-permissions"; fi) \ - $(if [ "${{ inputs.gh-code-scanning-compat }}" == "true" ]; then echo "--gh-code-scanning-compat"; fi) + $(if [ "${{ inputs.gh-code-scanning-compat }}" == "true" ]; then echo "--gh-code-scanning-compat"; fi) \ + $(if [ -n "${{ inputs.registry-address }}" ]; then echo "--registry-address ${{ inputs.registry-address }}"; fi) else echo "Skipping docker tools" fi