Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Locking/auditing for tags #1091

Open
Open

Description

@alecbz

Right now, it's basically impossible to have any protection around tags:

  • Anyone with write access to a repo can push any tags.
  • There's no auditing/logging of tag changes.

Any number of things could be done to improve this:

  • Add an option to protect individual tags (or better yet, any tags that match a given regex/have a certain prefix), like how how branches can be protected.
  • Include tagging events in the per-organization audit logs.
  • Allow tag pushes to be locked down more tightly, like only allowing admins to push tags.

Activity

  1. alecbz commented on Oct 14, 2017

    @alecbz
    Author

    Response from GitHub:

    There isn't currently a way to protect or audit tags but I can pass your request onto our team to consider.

    One workaround may be to set up a webhook to be notified if a tag is deleted using our API:

    https://developer.github.com/v3/activity/events/types/#deleteevent

  2. Ap0th0cary commented on Dec 8, 2017

    @Ap0th0cary

    I am experiencing the same issues surrounding protecting tags. we are currently looking to migrate our source from another vcs into GitHub Enterprise, and this is a major sticking point for us. Another git related UI (cough gitlab cough) already has this functionality built in. In terms of sqa releases vs production releases, this is how we would be labeling releases, and if anyone with write privileges can delete a tag whenever they want, even on protected branches(which seems counter-intuitive), we have a problem. I agree with AlecBenzer that all three of his suggestions should be implemented, but in addition, why not make deleting tags on protected branches an admin/owner only task. this way, if one is applied by accident, it can be corrected, just not by everyone on the team with write access.

  3. israel-evans-tc commented on Dec 26, 2017

    @israel-evans-tc

    I also have run into this limitation. I had to end up using branches instead, for marking released versions. It would be a lot cleaner if you could tag release versions instead. In that case, all branches would be WIP and all tags would be release.

  4. ajmichels commented on Apr 18, 2018

    @ajmichels

    At the very least it would be nice to have a way to require tags to be annotated so that you can identify who pushed them. But more options around this would be very nice, as the @AlecBenzer pointed out there is pretty much nothing right now unless you restrict everyone to read-only.

    Personally I like using forks to help manage workflow but currently I am not able to do so because of the CI/CD tools I have inherited which do not support forks.

  5. Miserlou commented on Jun 28, 2018

    @Miserlou
  6. Nadahar commented on Jul 23, 2018

    @Nadahar

    This is an accident waiting to happen, the ability to protect tags is very much needed.

  7. SudheerGundanna commented on Jul 25, 2018

    @SudheerGundanna

    Our organization need this too. If not I will start thinking of moving to GitLab or so.

  8. io41 commented on Aug 14, 2018

    @io41

    This accident has already happened to our team several times, when someone accidentally tagged commits in different branches that didn't get merged to master in their current form. Tags looks like reviewed, approved code and any reference to a tag is assumed to be stable and in master.

  9. dluc commented on Aug 16, 2018

    @dluc

    Just had the same issue in one of our releases, same as @io41.
    We need tagging policies similarly to how branches can be protected.

  10. pulkitjalan commented on Nov 18, 2018

    @pulkitjalan

    This would be a great feature for us too, surprised GitHub doesn't already have this

  11. Pytry commented on Nov 28, 2018

    @Pytry

    When is this going to be implemented and added to GitHub Enterprise?

  12. johndgiese commented on Dec 5, 2018

    @johndgiese

    I work at a 10-person medical imaging software development firm. We use Github extensively.

    We would very much like to have this feature. It exists in Gitlab already, and it would make Github more useful for us when working on FDA-regulated projects. In particular, it would make it easier for us to use Github as a 21 CFR Part 11 compliant document store.

  13. strugee commented on Dec 5, 2018

    @strugee

    Just want to remind everyone in this thread that GitHub does not monitor this repository. Be sure to tell support that you need this feature, too.

  14. 39 remaining items

  15. Sceat commented on May 4, 2020

    @Sceat

    This feature is like drinking water, my company wants to move from gitlab to github but this unbelievable 3 years issue is preventing us to do so.

  16. pintonunes commented on May 12, 2020

    @pintonunes

    +1

  17. btnguyen2k commented on Jul 7, 2020

    @btnguyen2k

    Almost 3 years and still waiting. This issue is tagged WIP, so any update on this?

  18. guillevalin commented on Jul 8, 2020

    @guillevalin

    We just moved to a CI/CD pipeline using GitHub Actions and wanted to deploy releases using tags. It works perfectly and then wanted to protect tag creation only to know that wasn't possible.

    We would greatly appreciate if this feature request gets implemented sooner than later.

  19. Glen1023 commented on Aug 28, 2020

    @Glen1023

    Check this issue opened time 13 Oct 2017 and my commented time 28 Aug 2020. What a surprise...

  20. HeatherLemieux commented on Sep 24, 2020

    @HeatherLemieux

    @lukehefson any updates on this? Is there anyway we can get any visibility into this WIP other than tagging you directly?

  21. Sceat commented on Sep 24, 2020

    @Sceat

    This feature should be highly prioritized, we at our company manage to do without it for now but as we grow it will become mandatory and we don't want to move to gitlab for this, github is pleasant

  22. ScottPierce commented on Oct 9, 2020

    @ScottPierce

    It's a little surprising that this hasn't been added to github yet, especially given how essential to many teams flows tags are.

  23. vw-mf commented on Oct 14, 2020

    @vw-mf

    We really need this. Whats the status? @isaacs

  24. alecbz commented on Oct 14, 2020

    @alecbz
    Author

    @vw-mf This is an unofficial repository for GitHub issues, @isaacs has no affiliation with GitHub. You can try contacting GitHub support for an update.

  25. HeatherLemieux commented on Nov 6, 2020

    @HeatherLemieux

    Just came across this today, Github now allows users to submit feature requests via https://support.github.com/contact/feedback . Probably worthwhile for us to do since this repo is only kinda tracked by github per #1091 (comment)

  26. lukehefson commented on Nov 23, 2020

    @lukehefson

    @HeatherLemieux Apologies for the slow response – I've been out of the office for a break.

    I'm no longer part of a team that has an influence on this part of our product so I'm unable to state when it may be addressed or how. I do however know that the team responsible for this area is very aware of it!

    Github now allows users to submit feature requests via https://support.github.com/contact/feedback . Probably worthwhile for us to do since this repo is only kinda tracked by github per #1091 (comment)

    Yes! That's now the best way to register your feedback and I'd highly encourage you to do so. It will lead directly to the team who owns this part of the product 😄

  27. kenjiru commented on Dec 17, 2020

    @kenjiru

    I believe this issue is tracked here now:
    https://github.community/t/feature-request-protected-tags/1742/35

    But it seems that there is not much progress.

  28. vkiller commented on May 4, 2021

    @vkiller

    Love this feature,should be considered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WIPparitypermissionsprotected branchestag

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions