goharbor/harbor

Add Webhook Trigger for “Tag Created” Event

Chiusa

#22.640 aperta il 15 dic 2025

 (6 commenti) (0 reazioni) (0 assegnatari)Go (5235 fork)batch import
Stalehelp wanted

Metriche repository

Star
 (28.490 stelle)
Metriche merge PR
 (Merge medio 8g 17h) (74 PR mergiate in 30 g)

Descrizione

Discussed in https://github.com/goharbor/harbor/discussions/22635

Originally posted by yashid-mohamed December 11, 2025 I’d like to request a new webhook event type that triggers specifically when a tag is created (without requiring the artifact itself to be pushed again).

Problem

When performing tag promotion (e.g., promoting an existing digest from 0.403.0 → 0.403.0-prod) using the Harbor API or UI, Harbor currently does not emit any webhook for this action.

This creates a gap for CI/CD pipelines and downstream automation tools that rely on webhook notifications to react to new tags. Since no new artifact is pushed and no scan/build occurs, none of the existing webhook types fire.

Use Case

Many promotion workflows rely on copying or creating tags inside Harbor (to preserve digest immutability and avoid re-pushing images). Examples:

  • Promotion from dev → prod
  • Tagging releases in automation pipelines
  • Triggering deployments based on tag creation

Without a webhook event for tag creation, external systems must continuously poll Harbor, which is inefficient.

Guida contributor