@@ -70,13 +70,33 @@ jobs:
7070with :
7171version :${{ matrix.version }}
7272
73- -name :Empty file
73+ # On PRs, overlay analysis may change the config that is passed to the CLI.
74+ # Therefore, we have two variants of the following test, one for PRs and one for other events.
75+ -name :Empty file (non-PR)
76+ if :github.event_name != 'pull_request'
7477uses :./../action/.github/actions/check-codescanning-config
7578with :
7679expected-config-file-contents :" {}"
7780languages :javascript
7881tools :${{ steps.prepare-test.outputs.tools-url }}
7982
83+ -name :Empty file (PR)
84+ if :github.event_name == 'pull_request'
85+ uses :./../action/.github/actions/check-codescanning-config
86+ with :
87+ expected-config-file-contents :|
88+ {
89+ "query-filters": [
90+ {
91+ "exclude": {
92+ "tags": "exclude-from-incremental"
93+ }
94+ }
95+ ]
96+ }
97+ languages :javascript
98+ tools :${{ steps.prepare-test.outputs.tools-url }}
99+
80100 -name :Packs from input
81101if :success() || failure()
82102uses :./../action/.github/actions/check-codescanning-config