Protect tags push #5595

Closed
opened 2025-11-02 06:30:18 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @micheelengronne on GitHub (Jun 19, 2020).

  • Gitea version (or commit ref): v1.12.0
  • Git version: 2.25.1
  • Operating system: ubuntu
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

There is currently no way (AFAIK) to disable tag push via git cli. That means a user who can push code to a repository can always push tags.

Is there a way to protect tags creation the same way than branches and the same way than Github or Gitlab ?

Thanks.

Originally created by @micheelengronne on GitHub (Jun 19, 2020). - Gitea version (or commit ref): v1.12.0 - Git version: 2.25.1 - Operating system: ubuntu - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant - Log gist: ## Description There is currently no way (AFAIK) to disable tag push via git cli. That means a user who can push code to a repository can always push tags. Is there a way to protect tags creation the same way than branches and the same way than Github or Gitlab ? Thanks.
GiteaMirror added the type/proposal label 2025-11-02 06:30:18 -06:00
Author
Owner

@lunny commented on GitHub (Dec 1, 2022):

This has been fixed by #15545

@lunny commented on GitHub (Dec 1, 2022): This has been fixed by #15545
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5595