Skip to content

SyntaxError: Unexpected token in JSON at position 0 #63

Open
@nvjrepo

Description

I got below error when running the package:
image

Below is the code i used

      - name: Lint dbt models
        id: sqlfluff_json
        #shell: bash -l {0}
        run: |
          git fetch origin main:main
          git diff main --name-only --diff-filter=d | egrep '^models/.*sql$$' | xargs -r sqlfluff lint --format github-annotation --annotation-level failure --nofail > annotations.json

      - name: Annotate
        uses: yuzutech/[email protected]
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          title: 'lint'
          input: './annotations.json'       

Metadata

Assignees

No one assigned

    Labels

    ❔ questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions