Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.

add-on registry tests last commit release

DDEV Bearer

Overview

This add-on integrates Bearer, a powerful static application security testing (SAST) tool, directly into your DDEV project.

It allows you to scan your source code for security and privacy vulnerabilities without leaving the DDEV workflow.

Key Benefits

Main Features

Installation

ddev add-on get massiws/ddev-bearer
ddev restart

# Generates a default config to `bearer.yml`
ddev bearer init

After installation, you may want to customize the default configuration settings by editing the bearer.yml file: see Bearer configuration docs for more information.

Important: Restart DDEV after making changes to the bearer.yml file.

Make sure to commit the .ddev directory and the bearer.yml file to version control.

Usage

Command Description
ddev bearer Display available commands and usage information
ddev bearer scan . Scan entire project using default configuration in bearer.yml
ddev bearer scan . --severity critical,high Scan only for critical and high-severity issues
ddev bearer scan . --scanner=secrets Scan specifically for hardcoded credentials and secrets
ddev bearer scan <path/to/file> --context=health Scan specific file/folder with custom context (health, payment, finance, etc.)
ddev bearer ignore add <fingerprint> --author "Your Name" --comment "Reason" Add fingerprint to ignore file and track with author/comment metadata

Tips & Tricks

Auto-fill Author in Ignore Commands: To avoid specifying the author repeatedly, configure your Git username in DDEV globals:

ln -s $HOME/.gitconfig $HOME/.ddev/homeadditions/.gitconfig

This will automatically use your Git username for all ddev bearer ignore commands.

Documentation

For comprehensive information, refer to the Bearer CLI documentation:

Contributing & Support

Contributed and maintained by @massiws

For issues, feature requests, or contributions, please visit the GitHub repository.

If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.