mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-30 10:16:54 +00:00
Implements detect-azure-credentials hook based on Microsoft AzSK credential patterns. Features: - 33 credential detection patterns aligned with official AzSK specification - Covers Azure-specific credentials (Data Factory, Storage, DevOps, etc.) - Detects generic secrets (passwords, API keys, tokens, certificates) - Comprehensive test suite with 22 test cases - Pattern name identification in output for easier debugging Patterns include (CSCAN codes): - Azure Data Factory SHIR keys (0010) - Azure Storage credentials (0020, 0040) - App Service deployment secrets (0050) - Connection strings and passwords (0090, 0100, 0120) - Machine keys and network credentials (0130, 0150) - DevOps PAT tokens (0160) - PublishSettings passwords (0030) - PEM private keys (0060) - Git credentials (0210) - JWT and refresh tokens (0250) - Ansible Vault (0260) - Azure PowerShell token cache (0270) - Default/known passwords (0140) All tests passing (22 Azure + 36 AWS = 58 total) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| check_added_large_files_test.py | ||
| check_ast_test.py | ||
| check_builtin_literals_test.py | ||
| check_case_conflict_test.py | ||
| check_docstring_first_test.py | ||
| check_executables_have_shebangs_test.py | ||
| check_illegal_windows_names_test.py | ||
| check_json_test.py | ||
| check_merge_conflict_test.py | ||
| check_shebang_scripts_are_executable_test.py | ||
| check_symlinks_test.py | ||
| check_toml_test.py | ||
| check_vcs_permalinks_test.py | ||
| check_xml_test.py | ||
| check_yaml_test.py | ||
| conftest.py | ||
| debug_statement_hook_test.py | ||
| destroyed_symlinks_test.py | ||
| detect_aws_credentials_test.py | ||
| detect_azure_credentials_test.py | ||
| detect_private_key_test.py | ||
| end_of_file_fixer_test.py | ||
| file_contents_sorter_test.py | ||
| fix_byte_order_marker_test.py | ||
| forbid_new_submodules_test.py | ||
| mixed_line_ending_test.py | ||
| no_commit_to_branch_test.py | ||
| pretty_format_json_test.py | ||
| readme_test.py | ||
| removed_test.py | ||
| requirements_txt_fixer_test.py | ||
| sort_simple_yaml_test.py | ||
| string_fixer_test.py | ||
| tests_should_end_in_test_test.py | ||
| trailing_whitespace_fixer_test.py | ||
| util_test.py | ||