-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
45 lines (40 loc) · 1.32 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
# docs: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
name: Run GitLeaks
description: Installs and runs GitLeaks in your actions workflow
inputs:
version:
description: GitLeaks version
required: true
default: latest
config-path:
description: Path to the config file
required: false
path:
description: Path to source (git repo, directory, file; current working directory by default)
required: false
run:
description: Set it to "true" to run GitLeaks, or "false" if you don't want it to run (you can do this later manually)
required: false
default: 'true'
fail-on-error:
description: Set "false" for exiting without an error when GitLeaks run failed
required: false
default: 'true'
github-token:
description: GitHub auth token. Since there's a default, this is typically not supplied by the user
required: false
default: ${{ github.token }}
outputs:
gitleaks-bin:
description: Path to the gitleaks binary file
sarif:
description: Path to the report in SARIF format
exit-code:
description: GitLeaks exit code (will be set only if "inputs.run" is "true")
runs:
using: node20
main: dist/index.js
branding:
icon: eye
color: red