From 8dedd08d895220e35cc1f39550e23047c5200cf3 Mon Sep 17 00:00:00 2001 From: Miccah Date: Thu, 2 Feb 2023 14:18:46 -0600 Subject: [PATCH] Add TruffleHog version input for GitHub action (#1064) --- action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 6aed83129..b604f92c6 100644 --- a/action.yml +++ b/action.yml @@ -3,8 +3,12 @@ description: 'Scan Github Actions with TruffleHog' author: Truffle Security Co. 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). @@ -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 }}