Skip to content

Harden privileged environments and define CODEOWNERS #22

Description

@vitormattos

Goal

Complete the repository controls that cannot be guaranteed by workflow YAML alone.

Privileged environments

For LibreSign/.github and LibreCodeCoop/.github, review the ruleset-sync environment and ensure:

  • deployment branches are restricted to main;
  • required reviewers are configured where supported;
  • only maintainers can administer the environment;
  • RULESET_APP_PRIVATE_KEY exists only as an environment secret;
  • the environment is not available to arbitrary branches.

For LibreCodeCoop/github-governance, create/protect the release environment with:

  • deployment restricted to main;
  • required reviewer approval where supported;
  • no unrelated secrets.

The workflows already reject privileged manual dispatches outside main; environment protection is an independent control.

CODEOWNERS

The rulesets require code-owner review, but the repositories should have an explicit CODEOWNERS policy backed by a real maintainer/security team.

Do not hardcode an invented team name. Create or select the appropriate organization team first, then add CODEOWNERS for at least:

  • .github/workflows/**;
  • .github/dependabot.yml;
  • governance.config.json;
  • action.yml and discover/action.yml;
  • security/release documentation.

Acceptance criteria

  • privileged environments are restricted and reviewed;
  • CODEOWNERS resolves to an existing GitHub team/user;
  • sensitive workflow/policy changes require a code-owner review;
  • no single placeholder or nonexistent owner is committed.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions