Skip to content

Tag push support: handle refs/tags/* in hook chain and proxy filters #19

@coopernetes

Description

@coopernetes

Summary

git push --tags and individual tag pushes are currently not handled. Tag refs bypass all validation and forwarding logic.

What

  • Detect tag refs (refs/tags/*) in incoming pushes for both proxy and S&F modes
  • Run the filter/hook chain for tag pushes (author email + content scanning apply; commit message validation may not)
  • Forward tag refs upstream via ForwardingPostReceiveHook
  • Config option to allow/deny tag pushes per provider

Details

  • S&F mode: check ReceiveCommand.getRefName() for refs/tags/ prefix in hook chain
  • Proxy mode: ParseGitRequestFilter + EnrichPushCommitsFilter need to handle tag objects
  • Annotated tags point to a tag object → commit; lightweight tags point directly to a commit — dereference accordingly for author email checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions