Preparing Files for Scanning with the Pipeline Scan

Veracode APIs

Before running a scan with the Pipeline Scan REST API, obtain details about the files you want to scan.

Perform the tasks in this table before starting a scan.

Task Command
Compute SHA256 hash. Required for scan.
  • Windows

    Powershell Get-Filehash

  • macOS

    shasum -a 256 {full_path_to_file}

  • Linux

    sha256sum {full_path_to_file}

Compute file size.

  • Windows

    dir /{full_path_to_file}

  • macOS

    stat -f %z {full_path_to_file}

  • Linux

    stat -c %s {full_path_to_file}