Giter VIP home page Giter VIP logo

veracode-scan-counts's Introduction

Veracode Scan Counts

Identify applications with one or more static scans in an incomplete state.

Setup

Clone this repository:

git clone https://github.com/tjarrettveracode/veracode-scan-counts

Install dependencies:

cd veracode-scan-counts
pip install -r requirements.txt

(Optional) Save Veracode API credentials in ~/.veracode/credentials

[default]
veracode_api_key_id = <YOUR_API_KEY_ID>
veracode_api_key_secret = <YOUR_API_KEY_SECRET>

Run

If you have saved credentials as above you can run:

python vcscancounts.py (arguments)

Otherwise you will need to set environment variables:

export VERACODE_API_KEY_ID=<YOUR_API_KEY_ID>
export VERACODE_API_KEY_SECRET=<YOUR_API_KEY_SECRET>
python vcscancounts.py (arguments)

Arguments supported include:

  • --appid, -a (opt): application guid to check for static scans in an incomplete state.
  • --all, -l (opt): If set, checks all applications.

NOTES

  1. This script checks all applications and their sandboxes so may take a long time to run.
  2. All values are logged to vcscancounts.log.

veracode-scan-counts's People

Contributors

jbrule avatar tjarrettveracode avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

veracode-scan-counts's Issues

Get what appears to be an XML parsing error

Any assistance would be appreciated.

*********@******** veracode-scan-counts % python3 vcscancounts.py --all   
Checking 965 applications for incomplete scans
Traceback (most recent call last):
  File "/Users/*********/Projects/veracode-scan-counts/vcscancounts.py", line 41, in get_incomplete_scans
    static_scan = next(scan for scan in scans if scan["scan_type"] == "STATIC")
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/*********//Projects/veracode-scan-counts/vcscancounts.py", line 115, in <module>
    main()
  File "/Users/*********//Projects/veracode-scan-counts/vcscancounts.py", line 98, in main
    this_app_scans = get_incomplete_scans(app)
  File "/Users/*********//Projects/veracode-scan-counts/vcscancounts.py", line 50, in get_incomplete_scans
    appscancount += get_incomplete_sandbox_scans(this_app_guid, this_app_id)
  File "/Users/*********//Projects/veracode-scan-counts/vcscancounts.py", line 66, in get_incomplete_sandbox_scans
    buildid = builds[0].get('build_id')
  File "src/lxml/etree.pyx", line 1176, in lxml.etree._Element.__getitem__
IndexError: list index out of range

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.