Skip to content

Commit

Permalink
Add TruffleHog version input for GitHub action (trufflesecurity#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcastorina authored Feb 2, 2023
1 parent 8be89a5 commit 8dedd08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ description: 'Scan Github Actions with TruffleHog'
author: Truffle Security Co. <support@trufflesec.com>

inputs:
version:
description: TruffleHog version.
required: false
default: latest
path:
description: Repository path
description: Repository path.
required: true
base:
description: Start scanning from here (usually main branch).
Expand All @@ -22,7 +26,7 @@ branding:
color: "green"
runs:
using: "docker"
image: "docker://ghcr.io/trufflesecurity/trufflehog:latest"
image: "docker://ghcr.io/trufflesecurity/trufflehog:${{ inputs.version }}"
args:
- git
- file://${{ inputs.path }}
Expand Down

0 comments on commit 8dedd08

Please sign in to comment.