diff --git a/action.yml b/action.yml index 2dae83d..4e1b4f2 100644 --- a/action.yml +++ b/action.yml @@ -1,8 +1,14 @@ +--- name: "GitHub CODEOWNERS Validator" description: "GitHub action to ensure the correctness of your CODEOWNERS file." author: "szostok.mateusz@gmail.com" inputs: + docker_image: + description: "Docker image to use when running the GitHub Workflow. The value defaults to the latest publicly released GitHub Docker image, but this can/should be overridden in scenarios where supply chain attacks are a concern. Some examples: GitHub Enterprise environments, when using an internal Docker Hub instance, etc." + required: false + default: "docker://ghcr.io/mszostok/codeowners-validator:v0.7.4" + github_access_token: description: "The GitHub access token. Instruction for creating a token can be found here: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/#creating-a-token. If not provided then validating owners functionality could not work properly, e.g. you can reach the API calls quota or if you are setting GitHub Enterprise base URL then an unauthorized error can occur." required: false @@ -80,7 +86,7 @@ inputs: runs: using: 'docker' - image: 'docker://ghcr.io/mszostok/codeowners-validator:v0.7.4' + image: "${{ inputs.docker_image }}" env: ENVS_PREFIX: "INPUT"