Skip to content

Commit

Permalink
Merge pull request #2 from custom-terraform-aws-modules/test/secrets-…
Browse files Browse the repository at this point in the history
…scan

Enha/secrets scan
  • Loading branch information
kfc-manager authored Feb 17, 2024
2 parents aec541c + 8dd6774 commit 3dda285
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 5 deletions.
77 changes: 77 additions & 0 deletions .github/.secrets.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"version": "1.2.0",
"plugins_used": [
{
"name": "ArtifactoryDetector"
},
{
"name": "AWSKeyDetector"
},
{
"name": "Base64HighEntropyString",
"limit": 4.5
},
{
"name": "BasicAuthDetector"
},
{
"name": "GitHubTokenDetector"
},
{
"name": "HexHighEntropyString",
"limit": 3.0
},
{
"name": "JwtTokenDetector"
},
{
"name": "KeywordDetector",
"keyword_exclude": ""
},
{
"name": "PrivateKeyDetector"
}
],
"filters_used": [
{
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
},
{
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
"min_level": 2
},
{
"path": "detect_secrets.filters.gibberish.should_exclude_secret",
"limit": 3.7
},
{
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
},
{
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
},
{
"path": "detect_secrets.filters.heuristic.is_lock_file"
},
{
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
},
{
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
},
{
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
},
{
"path": "detect_secrets.filters.heuristic.is_sequential_string"
},
{
"path": "detect_secrets.filters.heuristic.is_swagger_file"
},
{
"path": "detect_secrets.filters.heuristic.is_templated_secret"
}
],
"results": {},
"generated_at": "2024-02-17T11:23:05Z"
}
7 changes: 2 additions & 5 deletions .github/workflows/secrets-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v4

- name: Create .secrets.baseline
run: touch .secrets.baseline

- name: Install dependencies
run: pip install detect-secrets
- name: Move .secrets.baseline file
run: mv .github/.secrets.baseline .

- name: Scan for secrets
uses: secret-scanner/[email protected]
Empty file removed .secrets.baseline
Empty file.

0 comments on commit 3dda285

Please sign in to comment.