GithubHelp home page GithubHelp logo

pombredanne / veracode-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diniscruz/veracode-api

0.0 2.0 0.0 75 KB

Repo to hold veracode related issues and code snippets

License: Apache License 2.0

Shell 56.18% CoffeeScript 43.36% JavaScript 0.46%

veracode-api's Introduction

veracode-API

API to access Veracode REST API and veracode-ui issues

The current version of the API is bash based, but the idea is to rewrite parts of it in Node or Python.

Example of scan file

  • For Java/Maven based app
#!/usr/bin/env bash

. ./scan/api-veracode-xyz.sh

PROJECT=xxxxx
REPO_NAME=aaaa-bbbb-ccc
APP_ID=123456

function build_Files {
    build_Dependency "aaaa-common" "1.6.2"
    build_Dependency "aaaa-bbbb-security" "1.9"

    mvn install -DskipTests -Dcheckstyle.skip=true
}

function zip_Targets {
    rm $TARGET_FILE
    zip -r $TARGET_FILE ./target/aaaa-bbbb-ccc-1.0.0-SNAPSHOT.jar
}

setup
clone
build_Files
zip_Targets
trigger_Scan
  • for NodeJS project
#!/usr/bin/env bash

. ./scan/api-veracode-xyz.sh

PROJECT=xxx
REPO_NAME=aaaaa
APP_ID=12345


function zip_Targets {
    rm $TARGET_FILE
    zip -r $TARGET_FILE server.js
    zip -r $TARGET_FILE app server shared
}

setup
clone
zip_Targets
trigger_Scan

using veracode api as REPL

  • install it on cmd line: cd ./api/bash/;. api.sh; cd ../..
  • set veracode credentials: export [email protected] and export API_PASSWORD=xxxx
  • list of current veracode apps: veracode-app-list

current list of commands

veracode-api-invoke-v5                 veracode-app-build-begin-prescan
veracode-app-build-info             veracode-app-info                   
veracode-create-app                 veracode-api-invoke-F               
veracode-app-build-begin-scan       veracode-app-build-prescan-results  
veracode-app-list                   veracode-app-build                  
veracode-app-build-in-sandbox       veracode-app-upload-file
veracode-app-sandboxes             

Common actions/workflows:

  • get list of apps: veracode-apps
  • format result
    • get app info: format-xml "$(veracode-app-info {app_id})"
    • invoke method directly:
      • format-xml "$(veracode-api-invoke-v5 getprescanresults app_id={app_id})"
      • format-xml "$(veracode-api-invoke-v5 getbuildlist app_id={app_id})"
      • format-xml "$(veracode-api-invoke-v5 getbuilddetails app_id={app_id})"
      • format-xml "$(veracode-api-invoke-v4 getappbuilds)"

Resources

veracode-api's People

Contributors

diniscruz avatar

Watchers

 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.