Skip to content
play

GitHub Action

Community Built Veracode Upload And Scan

0.3.0 Pre-release

Community Built Veracode Upload And Scan

play

Community Built Veracode Upload And Scan

Upload files to veracode and start a static scan

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Community Built Veracode Upload And Scan

uses: unavailable-username/veracode-community-uploadandscan-action@0.3.0

Learn more about this action in unavailable-username/veracode-community-uploadandscan-action

Choose a version

THIS PROJECT HAS BEEN FORKED AND THE FORK IS BEING MAINTAINED BY VERACODE

Veracode Community-Built Upload And Scan Action

This action runs the Veracode Java Wrapper's 'upload and scan' action.

Inputs

appname

Required: The application name.

Default: '${{ github.repository }}'

createprofile

Required: True to create a new application profile.

Default: true

filepath

Required: Filepath or folderpath of the file or directory to upload. (If the last character is a backslash it needs to be escaped: \\).

version

Required: The name or version number of the new build.

Default: 'Scan from Github job: ${{ github.run_id }}'

vid

Required: Veracode API ID.

vkey

Required: Veracode API key.

Example usage

The following example will upload all files contained within the folder_to_upload to Veracode and start a static scan.

The veracode credentials are read from github secrets. NEVER STORE YOUR SECRETS IN THE REPOSITORY.

- uses: actions/setup-java@v1 # Make java accessible on path so the uploadandscan action can run.
  with: 
    java-version: '8'
- uses: actions/upload-artifact@v2 # Copy files from repository to docker container so the next uploadandscan action can access them.
  with:
    path: folder_to_upload/*.jar # Wildcards can be used to filter the files copied into the container. See: https://github.com/actions/upload-artifact
- uses: actions/veracode-community-uploadandscan-action@master # Run the uploadandscan action. Inputs are described above.
  with:
    filepath: 'folder_to_upload/'
    vid: '${{ secrets.VERACODE_ID }}'
    vkey: '${{ secrets.VERACODE_KEY }}'