mirror of
https://github.com/carhartl/talisman-secrets-scan-action.git
synced 2024-12-04 13:27:27 +00:00
Fix args setup
This commit is contained in:
parent
a429862749
commit
7724235e60
2 changed files with 10 additions and 3 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -11,5 +11,3 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- name: Test talisman
|
||||
uses: ./
|
||||
with:
|
||||
args: refs/heads/main ${{ github.event.after }} refs/heads/main ${{ github.event.before }}
|
||||
|
|
11
action.yml
11
action.yml
|
@ -1,7 +1,16 @@
|
|||
name: "Detect secrets with Talisman"
|
||||
description: "Scan an incoming range of commits for accidentally added secrets and sensitive information"
|
||||
inputs:
|
||||
local-sha:
|
||||
description: "The latest of the incoming commits"
|
||||
required: false
|
||||
default: ${{ github.event.after }}
|
||||
remote-sha:
|
||||
description: "The latest commit on the remote being pushed to"
|
||||
required: false
|
||||
default: ${{ github.event.before }}
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "Dockerfile"
|
||||
args:
|
||||
- refs/heads/main ${{ github.event.after }} refs/heads/main ${{ github.event.before }}
|
||||
- refs/heads/main ${{ inputs.local-sha }} refs/heads/main ${{ inputs.remote-sha }}
|
||||
|
|
Loading…
Reference in a new issue