From 523d06cb74bf2960ba0ba788612b86547d9465b8 Mon Sep 17 00:00:00 2001 From: Klaus Hartl Date: Sun, 19 Sep 2021 08:30:08 +0200 Subject: [PATCH] Make refs inputs as well --- action.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b461799..2d6679e 100644 --- a/action.yml +++ b/action.yml @@ -1,10 +1,18 @@ name: "Detect secrets with Talisman" description: "Scan an incoming range of commits for accidentally added secrets and sensitive information" inputs: + local-ref: + description: "Ref pushed from" + required: false + default: refs/heads/main local-sha: description: "The latest of the incoming commits" required: false default: ${{ github.event.after }} + remote-ref: + description: "Ref that was updated" + required: false + default: refs/heads/main remote-sha: description: "The latest commit on the remote being pushed to" required: false @@ -13,4 +21,4 @@ runs: using: "docker" image: "Dockerfile" args: - - refs/heads/main ${{ inputs.local-sha }} refs/heads/main ${{ inputs.remote-sha }} + - ${{ inputs.local-ref }} ${{ inputs.local-sha }} ${{ inputs.remote-ref }} ${{ inputs.remote-sha }}