-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update vet website docs docs: Set draft mode for unused docs docs: Update reporting doc
- Loading branch information
Showing
41 changed files
with
183 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
sidebar_position: 6 | ||
title: 🚫 Allow & Deny List | ||
draft: true | ||
--- | ||
|
||
# 🚫 Vet - Allow & Deny List | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,13 @@ | ||
--- | ||
sidebar_position: 4 | ||
title: 🧩 Configuration | ||
draft: true | ||
--- | ||
|
||
# 🧩 Configuring Vet | ||
|
||
`vet` comes with super powers 🚀, this section will help you to understand and explore some of them so that you can take your open source security to next level 😎 | ||
|
||
![vet command](/img/vet/vet-command.png) | ||
|
||
## API Key | ||
|
||
`vet` uses control plane API for the insights required to enrich the information of dependencies, and its information. | ||
|
||
### Generating an API key | ||
|
||
- You can run the following command with your email address to receive an API key. After running the following command, you will receive an email with the API key. | ||
|
||
```bash | ||
vet auth trial --email [email protected] | ||
``` | ||
|
||
![vet register trial](/img/vet/vet-register-trial.png) | ||
|
||
### Configuring an API key | ||
|
||
- You can configure the api key using the following command | ||
|
||
```bash | ||
vet auth configure | ||
``` | ||
|
||
![vet configure](/img/vet/vet-configure.png) | ||
|
||
- You can also pass the API key through environment variable using the variable `VET_API_KEY` | ||
|
||
### Renewing an API key | ||
|
||
- To renew an API key, you can re-register using the email. Even reach out to us at [[email protected]](mailto:[email protected]) and we would be happy to work with you | ||
|
||
## Using Community Mode | ||
|
||
- You can use community endpoint for Insights API without API key | ||
|
||
```bash | ||
vet auth configure --community | ||
``` | ||
|
||
- For CI job, set environment variable `VET_COMMUNITY_MODE=true` to enable community runtime mode | ||
|
||
## Scanning | ||
|
||
### Scanning Directories | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Artifactory Systems | ||
|
||
🚧 Work-in-Progress (WIP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Developer Tooling | ||
|
||
🚧 Work-in-Progress (WIP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
|
||
# Gateways | ||
|
||
🚧 Work-in-Progress (WIP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# IDE | ||
|
||
🚧 Work-in-Progress (WIP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Integrations | ||
|
||
🚧 Work-in-Progress (WIP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Logging & Monitoring Systems | ||
|
||
🚧 Work-in-Progress (WIP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Service Mesh | ||
|
||
🚧 Work-in-Progress (WIP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Systems & Solutions | ||
|
||
🚧 Work-in-Progress (WIP) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Dependency Cost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Dependency Inventory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Dependency Scanning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Drift Analysis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
sidebar_position: 1 | ||
title: 🧪 GitHub Code Scanning | ||
--- | ||
|
||
# GitHub Code Scanning Integration | ||
|
||
GitHub supports [uploading SARIF](https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning) | ||
reports to enable repository and organization-wide visibility of security | ||
events across different tools. `vet` supports exporting policy violation | ||
reports as [SARIF](#) which can be uploaded to GitHub. | ||
|
||
## Using SARIF Reports | ||
|
||
To generate a SARIF report, use the `vet` command with the `--report-sarif` flag: | ||
|
||
```shell | ||
vet scan -D /path/to/project --report-sarif /path/to/report.sarif | ||
``` | ||
|
||
## GitHub Action | ||
|
||
`vet` has a GitHub Action to easy integration. Refer to [vet GitHub | ||
Action](../integrations/github-actions.md) for more details. The action | ||
produces a SARIF report which can be uploaded to GitHub. | ||
|
||
Invoke `vet-action` to run `vet` in GitHub | ||
|
||
```yaml | ||
- name: Run vet | ||
id: vet | ||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
uses: safedep/vet-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
Upload the SARIF report to GitHub | ||
```yaml | ||
- name: Upload SARIF | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: ${{ steps.vet.outputs.report }} | ||
category: vet | ||
``` | ||
[Full Example](https://github.com/safedep/vet-action/blob/main/example/vet-ci.yml) | ||
**Note:** `vet` will only include policy violations in the SARIF report. | ||
A policy must be provided to `vet` using `--filter` or `--filter-suite` flag | ||
during scan. This is automatically included if you are using `vet-action`. | ||
|
||
## GitHub Code Scanning Alerts | ||
|
||
Once the SARIF report is uploaded to GitHub, policy violations will be | ||
available in the GitHub Security tab. This provides a centralized view of | ||
policy violations across different repositories. | ||
|
||
![GitHub Code Scanning Alerts](/img/vet-github-code-scanning-alerts.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# Health Status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
--- | ||
draft: true | ||
--- | ||
|
||
# License Scanning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
sidebar_position: 6 | ||
title: 🔁 AWS CodeBuild | ||
draft: true | ||
--- | ||
|
||
# 🔁 AWS CodeBuild Workflow - Vet | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
sidebar_position: 5 | ||
title: 🔁 Bitbucket Pipelines | ||
draft: true | ||
--- | ||
|
||
# 🔁 Bitbucket Pipelines Workflow - Vet | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
sidebar_position: 3 | ||
title: 🔁 Circle CI | ||
draft: true | ||
--- | ||
|
||
# 🔁 Circle CI Workflow - Vet | ||
|
Oops, something went wrong.