mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
4a3bba78cc
* Update github action to support generic cli command input * revert removal of inputs * echo in entrypoint * test custom docker image * revert docker image reference
33 lines
804 B
YAML
33 lines
804 B
YAML
name: 'TruffleHog OSS'
|
|
description: 'Scan Github Actions with TruffleHog'
|
|
author: Truffle Security Co. <support@trufflesec.com>
|
|
|
|
inputs:
|
|
path:
|
|
description: Repository path
|
|
required: true
|
|
base:
|
|
description: Start scanning from here (usually main branch).
|
|
required: true
|
|
head:
|
|
description: Scan commits until here (usually dev branch).
|
|
required: false
|
|
extra_args:
|
|
default: ''
|
|
description: Extra args to be passed to the trufflehog cli.
|
|
required: false
|
|
branding:
|
|
icon: "shield"
|
|
color: "green"
|
|
runs:
|
|
using: "docker"
|
|
image: "docker://ghcr.io/trufflesecurity/trufflehog:latest"
|
|
args:
|
|
- git
|
|
- file://${{ inputs.path }}
|
|
- --since-commit
|
|
- ${{ inputs.base }}
|
|
- --branch
|
|
- ${{ inputs.head }}
|
|
- --fail
|
|
- ${{ inputs.extra_args }}
|