Coder Social home page Coder Social logo

stjordanis / gradle-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snyk/gradle-plugin

0.0 2.0 0.0 122 KB

Snyk Gradle Plugin - Scanning and monitoring your dependencies for security vulnerabilities from Gradle

License: Other

Java 83.59% Groovy 16.41%

gradle-plugin's Introduction

Snyk logo

Snyk plugin for Gradle

Application CI

Snyk helps you find, fix and monitor for known vulnerabilities in your dependencies, both on an ad hoc basis and as part of your CI (Build) system.

The Snyk Gradle plugin tests and monitors your Gradle dependencies.

ℹī¸ This product is not an official Snyk supported product. It is an open-source community driven project that is initialised and partially maintained by Snyk engineers

Using the Snyk Plugin for Gradle

The latest version of the plugin is released at the Gradle Plugins Portal. Import the plugin using the plugin DSL

Groovy:

plugins {
  id "io.snyk.gradle.plugin.snykplugin" version "0.4"
}

Kotlin

plugins {
  id("io.snyk.gradle.plugin.snykplugin") version "0.4"
}

Setting:

Groovy:

snyk {
    arguments = '--all-sub-projects'
    severity = 'low'
    api = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
    autoDownload = true
    autoUpdate = true
}

all fields are optional

  • arguments - add extra arguments to the Snyk CLI. See Snyk CLI help for more information. In this example it scans all sub-projects for gradle
  • severity - what is the severity threshold. Leave empty to only show the vulnerabilites but not break
  • api - api key that can be found on the settings page of your (free) snyk account. Alternatively you can set a environment variable SNYK_TOKEN and ommit it here
  • autoDownload - automatically download the CLI is none is installed (default = true)
  • autoUpdate - update the CLI if there is a newer version (only if downloaded by gradle plugin) (default = false)

Running:

Snyk Test:

$ gradle snyk-test

Snyk Test together with a clean build:

$ gradle clean build snyk-test

Snyk Monitor: Snyk Test:

$ gradle snyk-monitor

Snyk Monitor together with a clean build:

$ gradle clean build snyk-monitor

gradle-plugin's People

Contributors

bmvermeer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.