Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 12 Feb 21:46
· 33 commits to main since this release
6bf04a9

πŸŽ‰ GitHub Codeowners Validator 0.7.0 is now available!

Highlights

πŸ”§ Bug Fixes

  • Normalize team name before comparison (#78) (@mszostok)
    GitHub is case-insensitive when assigning owners for a review. To match this approach now owners are normalized before checking if they exist under a given GitHub organization.

  • Allow unowned patterns by default with an option to change it (#113) (@mszostok)
    GitHub allows you to define a pattern and left its owners empty. For example:

    /apps/ @octocat
    /apps/github 
    

    In version 0.6 this was reported as error (Missing owner, at least one owner is required).
    In this release, this check was moved under owner checker and made optional. As a result, validator may work in a picky mode when needed, see new option:

    Name Default Description
    OWNER_CHECKER_ALLOW_UNOWNED_PATTERNS true Specifies whether CODEOWNERS may have unowned files. For example:

    /infra/oncall-rotator/ @sre-team
    /infra/oncall-rotator/oncall-config.yml

    The /infra/oncall-rotator/oncall-config.yml file is not owned by anyone.
    To enable strict mode on GitHub Action specify:
          - name: GitHub CODEOWNERS Validator
            uses: mszostok/[email protected]
            with:
              owner_checker_allow_unowned_patterns: "false"

    Additionally, it is now reported as warning not error:

    ==> Executing Valid Owner Checker (1.2s)
        [war] line 23: Missing owner, at least one owner is required
    
  • Fix spelling of brand GitHub (#106) (@jsoref)

  • 0e709b4: Changed belongs to belong in error message, add integration tests(#108) (@kyleellman)

✨ New checks

  • Enforce only one CODEOWNERS file (#100) (@athtran)
    In v0.7 an error is reported when more than one CODEOWNERS file is detected.

πŸ“– Docs

  • Add information how to configure GitHub action (#74) (@mszostok)

πŸ›‘οΈ Security

Installation

See the Installation section for more installation options.

Docker images

ghcr.io:

  • docker pull ghcr.io/mszostok/codeowners-validator:stable
  • docker pull ghcr.io/mszostok/codeowners-validator:v0
  • docker pull ghcr.io/mszostok/codeowners-validator:v0.7
  • docker pull ghcr.io/mszostok/codeowners-validator:v0.7.0

Docker Hub:

NOTE: Pushing to docker Hub will be deprecated and removed soon.

  • docker pull mszostok/codeowners-validator:latest
  • docker pull mszostok/codeowners-validator:v0.7.0
  • docker pull mszostok/codeowners-validator:v0.7

Changelog πŸš€