mszostok / codeowners-validator

The GitHub CODEOWNERS file validator
Apache License 2.0
221 stars 47 forks source link

How to exclude bots such as dependabot? #205

Open nitrocode opened 11 months ago

nitrocode commented 11 months ago

Description

How to exclude bots such as dependabot?

Workaround https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#fetch-metadata-about-a-pull-request

    - uses: mszostok/codeowners-validator@v0.7.1
      if: ${{ github.actor != 'dependabot[bot]' }}

Reasons

It would be nice to merge dependabot PRs by excluding specific authors from codeowner validation such as app/dependabot