]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Limit sarif to PRs from same repo
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Tue, 6 Dec 2022 15:58:42 +0000 (10:58 -0500)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 8 Mar 2023 13:33:48 +0000 (14:33 +0100)
.github/workflows/spelling3.yml

index 18f8240990fabff89e19c9aa63cb14fea79ed7a2..8bfa4de2e277e7fa6cbf5f2204c71c633dfe7b27 100644 (file)
@@ -42,7 +42,7 @@ jobs:
         checkout: true
         spell_check_this: check-spelling/spell-check-this@prerelease
         post_comment: 0
-        use_sarif: 1
+        use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
         extra_dictionaries:
           cspell:software-terms/src/software-terms.txt
           cspell:python/src/python/python-lib.txt