8000 GitHub - channelbeta/secret-scan: Action that uses TruffleHog to scan for secrets
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

channelbeta/secret-scan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED - use the upstream version

Trufflehog now provides their own action. Usage and more information in their README.

Secret Scan for GitHub Actions

Scan your repo for secrets. AWS tokens, keys, this has you covered.

This is a fork of max/secret-scan with an additional option to ignore patterns defined in a JSON file.

Usage

For more information about path filtering and allowed patterns, please refer to the truffleHog documentation.

on: push
name: Find Secrets
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: channelbeta/secret-scan@2.1.6

With path filters

Use path filters to manage the set of objects that will be scanned.

on: push
name: Find Secrets
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: channelbeta/secret-scan@2.1.6
        with:
          include_path: '<path-to>/include_paths.txt'
          exclude_path: '<path-to>/exclude_paths.txt'

Sample path filter file:

^\.github\/
^\.terraform\.lock\.hcl$
.*\.jmx$

With allowed patterns

Use a JSON file to allow patterns (including regex) that shouldn't trigger a warning.

on: push
name: Find Secrets
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: channelbeta/secret-scan@2.1.6
        with:
          allowed_patterns: '<path-to>/allowed_patterns.json'

Sample allowed patterns JSON:

{
    "descriptive name": "-----BEGIN EC PRIVATE KEY-----\nfoobar123\n-----END EC PRIVATE KEY-----",
    "git cherry pick SHAs": "regex:Cherry picked from .*"
}

About

Action that uses TruffleHog to scan for secrets

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 72.0%
  • Dockerfile 28.0%
0