diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 46bec31af..743d08979 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: hooks: - id: seed-isort-config - repo: https://github.com/pre-commit/mirrors-isort - rev: v5.7.0 + rev: v5.10.1 hooks: - id: isort - repo: https://github.com/myint/docformatter @@ -15,27 +15,27 @@ repos: - id: docformatter args: [--in-place] - repo: https://github.com/ambv/black - rev: 20.8b1 + rev: 22.6.0 hooks: - id: black language_version: python3.8 - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.3.0 hooks: - id: detect-aws-credentials - id: detect-private-key - id: trailing-whitespace - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.4 + rev: 5.0.4 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.790 + rev: v0.971 hooks: - id: mypy - repo: https://github.com/Yelp/detect-secrets - rev: v0.14.3 + rev: v1.3.0 hooks: - id: detect-secrets args: ['--baseline', '.secrets.baseline'] # run: `pip install detect-secrets` to establish baseline - exclude: Pipfile.lock + exclude: Pipfile.lock \ No newline at end of file diff --git a/.secrets.baseline b/.secrets.baseline index 8512e2dcb..c7cd6d50a 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -1,9 +1,4 @@ { - "custom_plugin_paths": [], - "exclude": { - "files": null, - "lines": null - }, "generated_at": "2021-01-07T20:38:34Z", "plugins_used": [ { @@ -13,8 +8,8 @@ "name": "ArtifactoryDetector" }, { - "base64_limit": 4.5, - "name": "Base64HighEntropyString" + "name": "Base64HighEntropyString", + "limit": 4.5 }, { "name": "BasicAuthDetector" @@ -23,8 +18,8 @@ "name": "CloudantDetector" }, { - "hex_limit": 3, - "name": "HexHighEntropyString" + "name": "HexHighEntropyString", + "limit": 3 }, { "name": "IbmCloudIamDetector" @@ -61,32 +56,67 @@ "results": { ".dist.env": [ { + "type": "Secret Keyword", + "filename": ".dist.env", "hashed_secret": "7aec9744ba1554e4d38febae4278e74a5e764414", "is_verified": false, - "line_number": 11, - "type": "Secret Keyword" + "line_number": 11 } ], "Pipfile.lock": [ { + "type": "Hex High Entropy String", + "filename": "Pipfile.lock", "hashed_secret": "65e0f56a0d4d73fb32738d5290721d0020c364a9", "is_verified": false, - "line_number": 4, - "type": "Hex High Entropy String" + "line_number": 4 } ], "docker-compose.local.yml": [ { + "type": "Secret Keyword", + "filename": "docker-compose.local.yml", "hashed_secret": "afc848c316af1a89d49826c5ae9d00ed769415f3", "is_verified": false, - "line_number": 30, - "type": "Secret Keyword" + "line_number": 30 } ] }, - "version": "0.14.3", - "word_list": { - "file": null, - "hash": null - } + "version": "1.3.0", + "filters_used": [ + { + "path": "detect_secrets.filters.allowlist.is_line_allowlisted" + }, + { + "path": "detect_secrets.filters.heuristic.is_sequential_string" + }, + { + "path": "detect_secrets.filters.heuristic.is_potential_uuid" + }, + { + "path": "detect_secrets.filters.heuristic.is_likely_id_string" + }, + { + "path": "detect_secrets.filters.heuristic.is_templated_secret" + }, + { + "path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign" + }, + { + "path": "detect_secrets.filters.heuristic.is_indirect_reference" + }, + { + "path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies", + "min_level": 2 + }, + { + "path": "detect_secrets.filters.heuristic.is_lock_file" + }, + { + "path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string" + }, + { + "path": "detect_secrets.filters.heuristic.is_swagger_file" + } + ] }