errata-ai / vale-action

:octocat: The official GitHub Action for Vale -- install, manage, and run Vale with ease.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linter unable to create annotations; printing Vale alerts instead.

ramyaparimi opened this issue · comments

This is my workflow:

name: Linter as style guide

on:
  pull_request:

permissions:
  actions: read
  contents: read
  pull-requests: write

jobs:
  linter:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f

      - name: Vale
        uses: errata-ai/vale-action@cb5ab4acdaf3169b1b5e5b4785d844aaea6366a0
        with:
          onlyAnnotateModifiedLines: true
        env:
          # Required, set by GitHub actions automatically:
          # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

My .vale.ini


# suggestion, warning or error
MinAlertLevel = warning 

Vocab = Docs

[*.md]
BasedOnStyles = Vale,Vocab

TokenIgnores = (\`{1}((.|\n)*?)\`{1}), \
               \[([^\[]+)\](\(.*\)), \
               {%.*?%}, \ 
               {{.*?}}, \  
               (.|\/|-)?github(\/|-)?, \
               (\`{3}((.|\n)*?)\`{3})
StylesPath = styles

# suggestion, warning or error
MinAlertLevel = warning 

Vocab = Docs

[*.md]
BasedOnStyles = Vale,Vocab

TokenIgnores = (\`{1}((.|\n)*?)\`{1}), \
               \[([^\[]+)\](\(.*\)), \
               {%.*?%}, \ 
               {{.*?}}, \  
               (.|\/|-)?github(\/|-)?, \
               (\`{3}((.|\n)*?)\`{3})

This posting annotations correctly until last week. I noticed this happening only this week.

image

Closing as it is duplicate of #12