Giter Site home page Giter Site logo

xray-cli's Introduction

xray-cli

Intro

This is a sample project for demonstrating JFrog Xray CLI capabilites of:

Pre-requisties

  • JFrog CLI v2.1.0 (or above)
    • M2_HOME environment variable is needed to be set
    • JFrog CLI configuration should be set with an Access Token
  • Artifactory (7.21.3 and above) & Xray (3.29.0 and above) working installation
    • For Docker scanning: JFrog CLI (2.11.0 and above), Artifactory (7.31.10 and above) & Xray (3.40.3 and above) working installation
  • Maven - for compiling & packaging the Java sample project ("petclinic")

Usage

  • Dependecies Scanning CLI

    • Maven:

      • Vulnerabilites scanning (without Policy or Watch defined)
        cd spring-petclinic-main/
        jfrog xr audit-mvn
        
        Output: Dependecies Scanning Output
      • Violations scanning (based on existing Watch in Xray) in JSON format
        cd spring-petclinic-main/
        jfrog xr audit-mvn --watches "all-builds" --format json
        
        Output: Dependecies Scanning Output by Watch
    • Docker:

      • Vulnerabilites scanning (without Policy or Watch defined)

        cd docker-image/
        jfrog s thomseno-h2.tar
        

        Output: Docker Dependecies Scanning Output

      • Violations scanning (based on existing Watch in Xray)

        cd docker-image/
        jfrog s thomseno-h2.tar --watches "all-builds"
        

        Output: Docker Dependecies Scanning Output by Watch

  • On-Demand Binary scanning CLI

    NOTE: mvn package is needed for creating the JAR file under the target/ directory

    • Vulnerabilites scanning (without Policy or Watch defined)

      cd docker-image/
      jfrog xr s spring-petclinic-2.4.5.jar
      

      Output: On-Demand Binary Scanning Output

    • Violations scanning (based on existing Watch in Xray)

      cd spring-petclinic-main/target/
      jfrog xr s spring-petclinic-2.4.5.jar --watches "all-builds"
      

      Output: On-Demand Binary Scanning Output by Watch

xray-cli's People

Contributors

etingertal avatar

Watchers

 avatar

Forkers

aruniyer27

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.