diff --git a/README.md b/README.md index 54a4f1d..03012bb 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Define the following inputs in your workflow to configure the ShiftLeft actions: - `docker_image` (required): The Docker image to scan, which should reside on the same runner. - `docker_user` (optional): Username for authenticating to the Docker registry. - `docker_password` (optional): Password for authenticating to the Docker registry. +- `docker_config_path` (optional): Path to the docker config directory to authenticate to the Docker registry. - `pull_image` (optional): Boolean flag to determine if the image should be pulled. Set to false if the image is available locally. Default is true. - `oci_client` (optional): Which client should be used to pull the image. The default `docker` will use the docker daemon. Other options include `podman` and `skopeo`. Note that the binary must be installed and available on the path. - `output_json` (optional): path to output JSON results to diff --git a/action.yml b/action.yml index ef6d010..e4aaf4b 100644 --- a/action.yml +++ b/action.yml @@ -17,6 +17,9 @@ inputs: docker_password: description: Password to authenticate to the Docker registry required: false + docker_config_path: + description: Path to the docker config directory to authenticate to the Docker registry + required: false pull_image: description: Attempt to pull the image. Set to false if image is available locally default: true @@ -167,6 +170,7 @@ runs: --repository ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} \ --docker-user="${{ inputs.docker_user }}" \ --docker-password="${{ inputs.docker_password }}" \ + --docker-config-path="${{ inputs.docker_config_path }}" \ --debug=${{ inputs.debug }} \ --additional-registries="${{ inputs.additional_registries}}" \ --docker-pull=${{ inputs.pull_image }} \