Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit fe01d3f

Browse files
committed
Narrow down GraphQL query to restrain results
To restrain the results of the query I introduced another filter to ensure only relevant YAML files are returned
1 parent 600cb77 commit fe01d3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/templates/scannerExamples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const ScannerExamples = props => {
4949

5050
export const query = graphql`
5151
query($basePath: String!) {
52-
examples: allFile(filter: {absolutePath: {regex: $basePath}, extension: {eq: "yaml"}}) {
52+
examples: allFile(filter: {base: {regex: "/^(findings|scan).yaml/"}, absolutePath: {regex: $basePath}, extension: {eq: "yaml"}}) {
5353
edges {
5454
node {
5555
base

0 commit comments

Comments
 (0)