mirror of
https://github.com/carhartl/talisman-secrets-scan-action.git
synced 2024-12-04 21:30:23 +00:00
Make refs inputs as well
This commit is contained in:
parent
cd80931011
commit
523d06cb74
1 changed files with 9 additions and 1 deletions
10
action.yml
10
action.yml
|
@ -1,10 +1,18 @@
|
||||||
name: "Detect secrets with Talisman"
|
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:
|
||||||
|
description: "Ref pushed from"
|
||||||
|
required: false
|
||||||
|
default: refs/heads/main
|
||||||
local-sha:
|
local-sha:
|
||||||
description: "The latest of the incoming commits"
|
description: "The latest of the incoming commits"
|
||||||
required: false
|
required: false
|
||||||
default: ${{ github.event.after }}
|
default: ${{ github.event.after }}
|
||||||
|
remote-ref:
|
||||||
|
description: "Ref that was updated"
|
||||||
|
required: false
|
||||||
|
default: refs/heads/main
|
||||||
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
|
||||||
|
@ -13,4 +21,4 @@ runs:
|
||||||
using: "docker"
|
using: "docker"
|
||||||
image: "Dockerfile"
|
image: "Dockerfile"
|
||||||
args:
|
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 }}
|
||||||
|
|
Loading…
Reference in a new issue