This plugin attempts to find secrets within the image using TruffleHog and annotates the build with either a list of files containing secrets or a confirmation that no secrets were found.
Add the following to your pipeline.yml
:
steps:
- plugins:
- cultureamp/trufflehog#v1.0.0:
trufflehog-image-uri: 'trufflesecurity/trufflehog:latest'
image-uri: '123456789012.dkr.ecr.us-east-1.amazonaws.com/my-image:latest'
The Docker URI for the TruffleHog image.
The URI of the image to scan for secrets.
To run the tests:
docker-compose run --rm tests
- Fork the repository
- Make the changes
- Run the tests
- Commit and push the changes
- Create a pull request