Skip to content

Repository settings that need an admin: protect release tags and main, Dependabot security updates #16

Closed

Description

@junior

A few settings would back up the release and CI work in #13, #14 and #15, and only an admin can change them. When you have a moment:

  1. Protect release tags with a tag ruleset for v*: only maintainers and admins can create them, and nobody can move or delete one once it is pushed. A tag is what triggers release.yml, so this decides who can ship a release.
  2. Protect main with a branch ruleset: changes through pull requests only, the test workflow's checks and DCO required once Test pull requests in CI, and add Dependabot #14 is in, no force pushes, no deletion. Rulesets name the required checks one job at a time, so that list needs a touch whenever the Go versions in the test matrix change. Whether a pull request also needs an approval from the other maintainer is your call; with two of us, it would mean each of us reviews the other.
  3. Turn on Dependabot alerts and Dependabot security updates in the repository's security settings. Version updates come from Test pull requests in CI, and add Dependabot #14's config, but security updates are what bump a vulnerable indirect module like golang.org/x/net on their own.
  4. Make the default workflow token read-only (Actions settings, workflow permissions), if it is not already. release.yml asks for what it needs itself, and the test workflow only reads.

Optional, but worth it for a tool that updates itself: private vulnerability reporting, so a security bug can be reported without a public issue. Happy to write a SECURITY.md to go with it.

Activity

  1. self-assigned this
    on Oct 29, 2026
  2. pierreneter commented on Oct 30, 2026

    @pierreneter
    Member

    Hey @junior, thanks for the write-up. I've applied your suggestions to the repository settings.

    Feel free to review and approve the Dependabot PRs if they look good to you.

  3. added a commit that references this issue on Nov 6, 2026
  4. junior commented on Nov 7, 2026

    @junior
    CollaboratorAuthor

    Thanks for setting these up. Everything my role can see is in place:

    • release-tags on v*: creating, moving and deleting a tag is limited to the bypass list.
    • protect-main: pull requests, one approval that a push dismisses, the three required checks, up to date with main, no force push or deletion.
    • Dependabot alerts are on, with none so far.
    • Private vulnerability reporting is on.

    Two I cannot see with the maintain role: Dependabot security updates and the read-only workflow token. You said they are applied, so just say if either is off.

    GitHub tells only admins and security managers about a private report, so a report would reach you and not me, and only if you watch the repository for all activity or with Security alerts ticked under Watch > Custom, which is worth a quick check. If you want a hand with reports, add me to the advisory when one comes in, or make me a security manager.

    #28 adds the SECURITY.md I offered, and a dependabot.yml fix for the kubernetes group, which fails on every refresh. The pull request lists what the policy promises on your behalf; change anything that does not fit. I will close this once it is merged, unless one of the settings is off.

  5. added a commit that references this issue on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions