name: "Check SARIF for query packs with Single include, Single exclude"

disable-default-queries: true

packs:
  javascript:
    - codeql/javascript-queries
    - codeql-testing/codeql-pack1@1.0.0

query-filters:
# This should run js/path-injection and js/zipslip
- include:
    tags contain:
        - external/cwe/cwe-022

# Removes js/path-injection
- exclude:
    id:
        - js/path-injection

# Query from extra pack
- include:
    id:
        - javascript/example/empty-or-one-block
