Fix args setup

This commit is contained in:
Klaus Hartl 2021-09-19 08:22:18 +02:00
parent a429862749
commit 7724235e60
No known key found for this signature in database
GPG key ID: 6BA8AED91AB6EA2A
2 changed files with 10 additions and 3 deletions

View file

@ -11,5 +11,3 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Test talisman - name: Test talisman
uses: ./ uses: ./
with:
args: refs/heads/main ${{ github.event.after }} refs/heads/main ${{ github.event.before }}

View file

@ -1,7 +1,16 @@
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:
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: runs:
using: "docker" using: "docker"
image: "Dockerfile" image: "Dockerfile"
args: 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 }}