goharbor/harbor

Add Webhook Trigger for “Tag Created” Event

Closed

#22,640 opened on Dec 15, 2025

 (6 comments) (0 reactions) (0 assignees)Go (5,235 forks)batch import
Stalehelp wanted

Repository metrics

Stars
 (28,490 stars)
PR merge metrics
 (Avg merge 8d 17h) (74 merged PRs in 30d)

Description

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.

Contributor guide