Make ref args configurable

Some repos might still use `master`. One should also be able to use the
action for a branch.
This commit is contained in:
Klaus Hartl 2021-09-19 08:39:18 +02:00
parent bb34703cd9
commit ef9092fef0
No known key found for this signature in database
GPG key ID: 6BA8AED91AB6EA2A

View file

@ -2,9 +2,9 @@ name: "Detect secrets with Talisman"
description: "Scan an incoming range of commits for accidentally added secrets and sensitive information" description: "Scan an incoming range of commits for accidentally added secrets and sensitive information"
inputs: inputs:
local-ref: local-ref:
description: "Ref pushed from" description: "Ref that was updated"
required: false required: false
default: refs/heads/main default: ${{ github.ref }}
local-sha: local-sha:
description: "The latest of the incoming commits" description: "The latest of the incoming commits"
required: false required: false
@ -12,7 +12,7 @@ inputs:
remote-ref: remote-ref:
description: "Ref that was updated" description: "Ref that was updated"
required: false required: false
default: refs/heads/main default: ${{ github.ref }}
remote-sha: remote-sha:
description: "The latest commit on the remote being pushed to" description: "The latest commit on the remote being pushed to"
required: false required: false