Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token in JSON at position 0 #63

Open
nvjrepo opened this issue Aug 24, 2023 · 1 comment
Open

SyntaxError: Unexpected token in JSON at position 0 #63

nvjrepo opened this issue Aug 24, 2023 · 1 comment
Labels
❔ question Further information is requested

Comments

@nvjrepo
Copy link

nvjrepo commented Aug 24, 2023

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'       
@ggrossetie
Copy link
Member

Most likely the annotations.json file does not contain a valid JSON. Try to download it and parse it manually.

@ggrossetie ggrossetie added the ❔ question Further information is requested label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔ question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants