Skip to content

Commit

Permalink
dependency check gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Aug 8, 2024
1 parent d248e48 commit 84b65b8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions posts/2024-08-08-dependency-check-gradle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: Dependency Check Gradle Plugin
summary: > The dependency-check gradle plugin allows projects to monitor dependent libraries for known, published vulnerabilities.
date_published: 2024-08-08T10:15:34+01:00
keywords:gradle,security,plugin
external_url: https://github.com/dependency-check/dependency-check-gradle
---

# [%title]

[%summary]

I requested a [NVD API Key](https://nvd.nist.gov/developers/request-an-api-key).

I set the NVD key as a π[global property for all Gradle Builds](https://blog.mrhaki.com/2015/10/gradle-goodness-setting-global.html). I added an entry to `USER_HOME/.gradle/gradle.properties`.

```properties
nvdKey=xxxx-yyy-zz-xgb-xvfbbbb
```

Then, I can apply the plugin with:

```groovy
plugins {
...
id("org.owasp.dependencycheck") version "10.0.3"
}
...
dependencyCheck {
nvd {
apiKey = "${nvdKey}"
}
}
```

The first time I run the plugin it took me 30m.

0 comments on commit 84b65b8

Please sign in to comment.