From a08d08a0a5923b74b34a93b0477861b4dffd6805 Mon Sep 17 00:00:00 2001 From: Rishi Verma Date: Wed, 3 Jul 2024 17:40:12 -0700 Subject: [PATCH] Fixed typo in pre-commit message --- .../dependency-vulnerability-scanning/.pre-commit-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/software-lifecycle/security/dependency-vulnerability-scanning/.pre-commit-config.yml b/docs/guides/software-lifecycle/security/dependency-vulnerability-scanning/.pre-commit-config.yml index b029bf2b9..46bbf6498 100644 --- a/docs/guides/software-lifecycle/security/dependency-vulnerability-scanning/.pre-commit-config.yml +++ b/docs/guides/software-lifecycle/security/dependency-vulnerability-scanning/.pre-commit-config.yml @@ -4,5 +4,5 @@ repos: - id: grype-cve-scan name: Grype Vulnerability Scan description: Scans for dependency vulnerabilities. Fails if CRITICAL vulnerabilities detected. - entry: python -c "import subprocess; import sys; result=subprocess.run(['grype', 'dir:.', '--fail-on', 'critical'], capture_output=True); print(result.stdout.decode()); print('CRITICAL vulnerabilities deteced. Please run scan, address issues via `grype dir:.` and `git add` then `git commit` your fix or ignore via `git commit --no-verify`'); sys.exit(result.returncode)" + entry: python -c "import subprocess; import sys; result=subprocess.run(['grype', 'dir:.', '--fail-on', 'critical'], capture_output=True); print(result.stdout.decode()); print('CRITICAL vulnerabilities detected. Please run scan, address issues via `grype dir:.` and `git add` then `git commit` your fix or ignore via `git commit --no-verify`'); sys.exit(result.returncode)" language: system \ No newline at end of file