Open-Source Branching & Releases | DefectDojo Documentation

Open-Source Branching & Releases (Open Source)

Regular releases

The DefectDojo team aims to maintain the following cadence:

GitHub Actions are the source of truth. The releases are semi-automated. The steps for a regular release are:

  1. Create the release branch from dev or bugfix and prepare a PR against master ( details) \n–> A maintainer verifies and manually merges the PR
  2. Tag, issue draft release and docker build+push ( details) \n–> A maintainer massages the release-drafter notes and publishes the release
  3. A PR to merge master back to dev and bugfix is created to re-align the branches ( details)

Security releases

PRs that relate to security issues are done through security advisories which provide a way to work privately on code without prematurely disclosing vulnerabilities.

Release and hotfix model

Diagrams created with plantUML. Find a web-based editor for PlantUML at https://www.planttext.com.

@startuml

participant “Dev Branch” as dev #LightBlue
participant “BugFix Branch” as bugfix #LightGreen
participant “Release Branch” as release #LightGoldenRodYellow
participant “Master Branch” as master #LightSalmon

== Minor Release (Monthly) ==

dev -> release: Create branch “release/2.x.0”
release -> master: Merge
note right: Official Release\n - Tag 2.x.0\n - Push 2.x.0 to DockerHub
master –> bugfix: Merge master into bugfix to realign
master –> dev: Merge master back into dev

== Patch/BugFix Release (Weekly) ==

bugfix -> release: Create branch “release/2.x.y”
release -> master: Merge
note right: Official Release\n - Tag 2.x.y\n - Push 2.x.y to DockerHub
master -> bugfix: Merge master back into bugfix to realign
master –> dev: Merge master into dev to realign

== Security Release (As Needed) ==

master -> release: Create branch “release/2.x.y”
release -> master: Merge
note right: Official Release\n - Tag 2.x.y\n - Push 2.x.y to DockerHub
master –> bugfix: Merge master into bugfix to realign
master –> dev: Merge master into dev to realign

@enduml
``