Skip to main content
This bash script demonstrates the complete workflow using curl and jq. It works with any CI/CD system that supports shell scripts.

Prerequisites

  • curl and jq installed
  • Environment variables configured

Complete Script

Save the script as binarly-scan.sh, add the verification block to its end, and make it executable with chmod +x binarly-scan.sh.

Environment Variables

Usage

4. Verify Results

After the scan completes, verify the results and optionally fail the build based on findings. Add this block to the end of binarly-scan.sh. It uses get_token and IMAGE_ID from the steps above, so it doesn’t work as a separate script.
For detailed explanation of the verification logic, see Verify Results.