GitHub - mj-collab/github-action-check: GitHub action for enforcing grit checks · GitHub
Skip to content

About

GitHub action for enforcing grit checks

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Grit GitHub Action

This action runs the Grit CLI to report any violations of your configured Grit patterns.

This action will add annotations to the GitHub commit or pull request with any warning or error patterns that are matched. If any error patterns are matched, the action will fail the workflow (exit code 1).

Usage

You can add it as a step in your GitHub Actions workflow to automatically check for violations on every push:

  - name: Grit
    uses: honeycombio/github-action-check@v0
    with:
      # Optional additional arguments to pass to the `grit check` command
      args: ''

Inputs

args

Specify additional arguments to pass to the grit check command.

By default, only warning and error patterns are reported. To include info patterns, use --level.

  - name: Grit
    uses: honeycombio/github-action-check@v0
    with:
      args: '--level info'

Example workflow

name: grit-check

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - '*'

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v4
      - name: grit-check
        uses: honeycombio/github-action-check@v0

License

This action code is released under the MIT License.

The Grit CLI is not included in this repository and is licensed separately.

About

GitHub action for enforcing grit checks

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors