From ef9092fef01f95d6cfdaae01d2a18fcb124b062f Mon Sep 17 00:00:00 2001 From: Klaus Hartl Date: Sun, 19 Sep 2021 08:39:18 +0200 Subject: [PATCH] Make ref args configurable Some repos might still use `master`. One should also be able to use the action for a branch. --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 2d6679e..7ffb164 100644 --- a/action.yml +++ b/action.yml @@ -2,9 +2,9 @@ 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" + description: "Ref that was updated" required: false - default: refs/heads/main + default: ${{ github.ref }} local-sha: description: "The latest of the incoming commits" required: false @@ -12,7 +12,7 @@ inputs: remote-ref: description: "Ref that was updated" required: false - default: refs/heads/main + default: ${{ github.ref }} remote-sha: description: "The latest commit on the remote being pushed to" required: false