From 9169f6f37b2a0442a66e01530f7adf3086560118 Mon Sep 17 00:00:00 2001 From: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com> Date: Mon, 18 Nov 2024 16:21:36 +0600 Subject: [PATCH] docs: fix mistakes/typos (#7942) --- docs/docs/advanced/air-gap.md | 40 +++++++++++++++++------------------ docs/docs/configuration/db.md | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/docs/advanced/air-gap.md b/docs/docs/advanced/air-gap.md index cf1df06f1bfe..e6c15a475723 100644 --- a/docs/docs/advanced/air-gap.md +++ b/docs/docs/advanced/air-gap.md @@ -101,28 +101,28 @@ On a machine with internet access, pull the database container archive from the Note that these examples operate in the current working directory. === "Using ORAS" -This example uses [ORAS](https://oras.land), but you can use any other container registry manipulation tool. - -```shell -oras pull ghcr.io/aquasecurity/trivy-db:2 -``` - -You should now have a file called `db.tar.gz`. Next, extract it to reveal the db files: - -```shell -tar -xzf db.tar.gz -``` - -You should now have 2 new files, `metadata.json` and `trivy.db`. These are the Trivy DB files. + This example uses [ORAS](https://oras.land), but you can use any other container registry manipulation tool. + + ```shell + oras pull ghcr.io/aquasecurity/trivy-db:2 + ``` + + You should now have a file called `db.tar.gz`. Next, extract it to reveal the db files: + + ```shell + tar -xzf db.tar.gz + ``` + + You should now have 2 new files, `metadata.json` and `trivy.db`. These are the Trivy DB files. === "Using Trivy" -This example uses Trivy to pull the database container archive. The `--cache-dir` flag makes Trivy download the database files into our current working directory. The `--download-db-only` flag tells Trivy to only download the database files, not to scan any images. - -```shell -trivy image --cache-dir . --download-db-only -``` - -You should now have 2 new files, `metadata.json` and `trivy.db`. These are the Trivy DB files, copy them over to the air-gapped environment. + This example uses Trivy to pull the database container archive. The `--cache-dir` flag makes Trivy download the database files into our current working directory. The `--download-db-only` flag tells Trivy to only download the database files, not to scan any images. + + ```shell + trivy image --cache-dir . --download-db-only + ``` + + You should now have 2 new files, `metadata.json` and `trivy.db`. These are the Trivy DB files, copy them over to the air-gapped environment. ### Populating the Trivy Cache diff --git a/docs/docs/configuration/db.md b/docs/docs/configuration/db.md index fb3b7385aa47..a6cc9f58b556 100644 --- a/docs/docs/configuration/db.md +++ b/docs/docs/configuration/db.md @@ -103,7 +103,7 @@ Please see more info on how to authenticate with ECR [auth-ecr]. #### Caching DBs Trivy DB and Trivy Java DB are published every 6 hours and 24 hours, respectively. If you are running Trivy scans more often than this, you can significantly benefit from caching the DBs on each run and updating them as needed. -Once example of this can be seen in Trivy Action, where with caching multiple CI invocations can be performed with a single download of the DBs. More on info Trivy Action caching can be found [trivy-action-cache]. +One example of this can be seen in Trivy Action, where with caching multiple CI invocations can be performed with a single download of the DBs. More on info Trivy Action caching can be found [trivy-action-cache]. ## Java Index Database The same options are also available for the Java index DB, which is used for scanning Java applications.