oci cli installation is failing with an error"The process '/home/runner/.local/bin/oci' failed with exit code 2"
oci cli installation is failing with an error"The process '/home/runner/.local/bin/oci' failed with exit code 2"
/home/runner/work/_actions/oracle-actions/run-oci-cli-command/v1.3.2/node_modules/@actions/exec/lib/toolrunner.js:592
error = new Error(The process '${this.toolPath}' failed with exit code ${this.processExitCode});
^
Error: The process '/home/runner/.local/bin/oci' failed with exit code 2
at ExecState._setResult (/home/runner/work/_actions/oracle-actions/run-oci-cli-command/v1.3.2/node_modules/@actions/exec/lib/toolrunner.js:592:1)
at ExecState.CheckComplete (/home/runner/work/_actions/oracle-actions/run-oci-cli-command/v1.3.2/node_modules/@actions/exec/lib/toolrunner.js:575:1)
at ChildProcess.
github task: - name: Configure OCI CLI uses: oracle-actions/[email protected] with: command: "setup config --file ~/.oci/config --user ${{ env.OCI_CLI_USER }} --tenancy ${{ env.OCI_CLI_TENANCY }} --region ${{ env.OCI_CLI_REGION }} --fingerprint ${{ env.OCI_CLI_FINGERPRINT }} --key-content '${{ env.OCI_CLI_KEY_CONTENT }}'"
here all secrets are working fine , since able to install and connect oci resources with below two stages
-
name: Install OCI CLI run: | python3 -m pip install oci-cli
- name: OCI CLI config setup run: | mkdir -p ~/.oci echo "${OCI_CLI_KEY_CONTENT}" > ~/.oci/oci_api_key.pem chmod 600 ~/.oci/oci_api_key.pem cat <<EOF > ~/.oci/config [DEFAULT] user=${OCI_CLI_USER} fingerprint=${OCI_CLI_FINGERPRINT} key_file=~/.oci/oci_api_key.pem tenancy=${OCI_CLI_TENANCY} region=${OCI_CLI_REGION} EOF
can help to get am i missing anything usage of task oracle-actions/[email protected]