BitBucket Pipeline Setup for Local Image Scanning
How to set up Local Scanning for images
1. Get your authentication token
2. Running the Local Scanner
image: docker:25.0.3
pipelines:
default:
- step:
name: Build Docker Image
image: docker:25.0.3
services:
- docker
script:
- export PATH=/usr/bin:$PATH
- docker build -t my-image .
- docker save --output my-image.tar my-image
artifacts:
- my-image.tar
- step:
name: Scan Docker Image
image: aikidosecurity/local-scanner
script:
- aikido-local-scanner image-scan my-image.tar --image-name my-image --apikey $AIKIDO_API_KEY3. Check your scanning results
Last updated
Was this helpful?