|
21 | 21 | # SECTION 1: GENERIC SECRETS DETECTION — Applies to all file types |
22 | 22 | # ========================================================================== |
23 | 23 |
|
24 | | - - id: generic-hardcoded-secret |
| 24 | + - id: generic-hardcoded-secret # pragma: allowlist secret |
25 | 25 | languages: [generic] |
26 | 26 | severity: ERROR |
27 | 27 | message: | |
|
77 | 77 | cwe: "CWE-798" |
78 | 78 | category: "security" |
79 | 79 |
|
80 | | - - id: generic-aws-secret-access-key |
| 80 | + - id: generic-aws-secret-access-key # pragma: allowlist secret |
81 | 81 | languages: [generic] |
82 | 82 | severity: ERROR |
83 | 83 | message: | |
@@ -361,7 +361,7 @@ rules: |
361 | 361 | category: "security" |
362 | 362 | note: "Not necessarily dangerous, but aggregated roles can accumulate unexpected permissions if selectors are too broad" |
363 | 363 |
|
364 | | - - id: k8s-rbac-secrets-cluster-access |
| 364 | + - id: k8s-rbac-secrets-cluster-access # pragma: allowlist secret |
365 | 365 | languages: [yaml] |
366 | 366 | severity: WARNING |
367 | 367 | message: | |
@@ -498,7 +498,7 @@ rules: |
498 | 498 | cwe: "CWE-653" |
499 | 499 | category: "security" |
500 | 500 |
|
501 | | - - id: k8s-secret-in-configmap |
| 501 | + - id: k8s-secret-in-configmap # pragma: allowlist secret |
502 | 502 | languages: [yaml] |
503 | 503 | severity: ERROR |
504 | 504 | message: | |
@@ -541,7 +541,7 @@ rules: |
541 | 541 | cwe: "CWE-522" |
542 | 542 | category: "security" |
543 | 543 |
|
544 | | - - id: yaml-hardcoded-secret |
| 544 | + - id: yaml-hardcoded-secret # pragma: allowlist secret |
545 | 545 | languages: [yaml] |
546 | 546 | severity: WARNING |
547 | 547 | message: | |
@@ -744,10 +744,10 @@ rules: |
744 | 744 | # SECTION 4: GITHUB ACTIONS SECURITY — Workflow files |
745 | 745 | # ========================================================================== |
746 | 746 |
|
747 | | - - id: github-actions-hardcoded-secret |
| 747 | + - id: github-actions-hardcoded-secret # pragma: allowlist secret |
748 | 748 | languages: [yaml] |
749 | 749 | severity: ERROR |
750 | | - message: | |
| 750 | + message: | # pragma: allowlist secret |
751 | 751 | Hardcoded secret in GitHub Actions workflow. |
752 | 752 |
|
753 | 753 | Security Risk: Secrets in workflows are visible in git history and to all collaborators. |
@@ -1814,7 +1814,7 @@ rules: |
1814 | 1814 | metadata: |
1815 | 1815 | category: "security" |
1816 | 1816 |
|
1817 | | - - id: dockerfile-secret-in-env |
| 1817 | + - id: dockerfile-secret-in-env # pragma: allowlist secret |
1818 | 1818 | languages: [dockerfile] |
1819 | 1819 | severity: ERROR |
1820 | 1820 | message: | |
|
0 commit comments