|
| 1 | +name: 'security-netlify-trufflehog-parse' |
| 2 | +description: 'python wrapped trufflehog scanner and report parser adding features like suppression handling' |
| 3 | +inputs: |
| 4 | + trufflehog_report_file_path: |
| 5 | + description: 'location of trufflehog report that will be parsed' |
| 6 | + required: true |
| 7 | + default: 'trufflehog_report.json' |
| 8 | + suppression_file_path: # id of input |
| 9 | + description: 'path/name of suppression list file' |
| 10 | + required: false |
| 11 | + default: 'suppressions-trufflehog' |
| 12 | + ignore_paths_file_path: # id of input |
| 13 | + description: 'path/name of paths-to-ignore list file' |
| 14 | + required: false |
| 15 | + default: 'ignore-paths-trufflehog' |
| 16 | + create_github_issue: |
| 17 | + description: 'boolean if user wishes to create github issues' |
| 18 | + required: false |
| 19 | + default: 'false' |
| 20 | + create_slack_notification: |
| 21 | + description: 'boolean if user wishes to create slack alert' |
| 22 | + required: false |
| 23 | + default: false |
| 24 | + secret_scan_slack_webhook: |
| 25 | + description: 'slack webhook, if desired' |
| 26 | + required: false |
| 27 | + default: '' |
| 28 | + secret_scan_gh_access_token: |
| 29 | + description: 'GH access token used to create issues' |
| 30 | + required: false |
| 31 | + default: '' |
| 32 | + github_repo_name: |
| 33 | + description: 'github repo name' |
| 34 | + required: false |
| 35 | + default: '' |
| 36 | +runs: |
| 37 | + using: 'docker' |
| 38 | + image: 'Dockerfile' |
| 39 | + args: |
| 40 | + - ${{ inputs.trufflehog_report_file_path }} |
| 41 | + - ${{ inputs.suppression_file_path }} |
| 42 | + - ${{ inputs.ignore_paths_file_path }} |
| 43 | + - ${{ inputs.create_github_issue }} |
| 44 | + - ${{ inputs.create_slack_notification }} |
| 45 | + env: |
| 46 | + SECRET_SCAN_SLACK_WEBHOOK: ${{ inputs.secret_scan_slack_webhook }} |
| 47 | + SECRET_SCAN_GH_ACCESS_TOKEN: ${{ inputs.secret_scan_gh_access_token }} |
| 48 | + GITHUB_REPO: ${{ inputs.github_repo_name }} |
| 49 | +branding: |
| 50 | + icon: 'life-buoy' |
| 51 | + color: 'white' |
0 commit comments