Skip to content

Protect main with a ruleset #13

Done

Description

@R3disme

Merging to main releases a new version to every user automatically, but main has no protection. A ruleset with the Actions bypass was refused by GitHub ("GitHub Actions integration must be part of the ruleset source"), because the release job pushes the version bump with GITHUB_TOKEN.

  • Create a deploy key with write access and store the private key as an Actions secret (RELEASE_DEPLOY_KEY) (done, write access checked)
  • Release job checks out and pushes with that key (Let the release job push past a protected main #17)
  • Ruleset on main: pull request with one approval, required checks, deploy-key bypass, Maintainers bypass for pull requests only ("Protect main", required check scripts)

Activity

  1. added
    ci
    security
    on Dec 2, 2026
  2. self-assigned this
    on Dec 2, 2026
  3. moved this from Todo to In progress in Woggle Roadmapon Dec 2, 2026
  4. moved this from In progress to In review in Woggle Roadmapon Dec 2, 2026
  5. R3disme commented on Dec 2, 2026

    @R3disme
    MemberAuthor

    Everything is in place: #17 merged, the deploy key has write access, the secret is set, and the "Protect main" ruleset is active. The next release run is the first one that pushes with the key; close this once that run is green.

  6. moved this from In review to Done in Woggle Roadmapon Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cisecurity

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions