Skip to content

Commit 8f6b331

Browse files
ci: don't fail fork PRs on sqlfluff annotate permissions
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 61c5606 commit 8f6b331

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/lint_sqlfluff.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ jobs:
3535
shell: bash
3636
run: sqlfluff lint --format github-annotation --annotation-level failure --nofail ${{ steps.get_files_to_lint.outputs.lintees }} > annotations.json
3737
- name: Annotate
38+
# Fork PRs cannot create check runs with GITHUB_TOKEN; lint already ran.
39+
continue-on-error: true
40+
if: steps.get_files_to_lint.outputs.lintees != ''
3841
uses: yuzutech/annotations-action@v0.6.0
3942
with:
4043
repo-token: "${{ secrets.GITHUB_TOKEN }}"
4144
title: "SQLFluff Lint"
42-
input: "./annotations.json"
45+
input: "./annotations.json"
46+
ignore-missing-file: true

0 commit comments

Comments
 (0)