Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

[KNO-409] - Remove ORDER BY #303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions jupiterone/questions/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ questions:
authorized repositories with a business need to access the Org secret.
queries:
- query: |
Find (github_account|github_repo|github_environment)
FIND (github_account|github_repo|github_environment)
THAT HAS Secret
RETURN TREE
tags:
Expand All @@ -75,7 +75,6 @@ questions:
FIND CodeRepo
THAT USES Secret
RETURN CodeRepo.displayName, Secret.displayName
ORDER BY Secret.displayName ASC
tags:
- github
- secret
Expand All @@ -93,11 +92,11 @@ questions:
- name: Past 180 Days
resultsAre: INFORMATIVE
query: |
Find Secret with updatedOn < date.now - 180 days
FIND Secret WITH updatedOn < date.now - 180 days
- name: Past Year
resultsAre: INFORMATIVE
query: |
Find Secret with updatedOn < date.now - 1 year
FIND Secret WITH updatedOn < date.now - 1 year
tags:
- github
- secret
Expand All @@ -114,9 +113,7 @@ questions:
query: |
FIND CodeRepo AS repo
THAT USES CodeRepo AS dependency
RETURN
repo.name,
count(dependency) AS dependents
RETURN repo.name, count(dependency) AS dependents
ORDER BY dependents DESC
- name: Visualize Dependent Repos Across the Org
resultsAre: INFORMATIVE
Expand All @@ -127,9 +124,9 @@ questions:
- name: Visualize Impact of Dependent Repos with Vulnerabilities
resultsAre: INFORMATIVE
query: |
Find CodeRepo AS repo
FIND CodeRepo AS repo
THAT USES CodeRepo AS dependency
THAT HAS (Finding|Vulnerability) WITH open=true
THAT HAS (Finding|Vulnerability) WITH open = true
RETURN TREE
tags:
- github
Expand All @@ -141,7 +138,7 @@ questions:
description: Finds all open PRs that have not been updated in the last week.
queries:
- query: |
FIND github_pullrequest with open = true AND updatedOn <= date.now-7days
FIND github_pullrequest WITH open = true AND updatedOn <= date.now-7days
tags:
- github
- dev
Expand All @@ -167,7 +164,8 @@ questions:
queries:
- resultsAre: BAD
query: |
FIND github_repo that !HAS github_branch_protection_rule
FIND github_repo
THAT !HAS github_branch_protection_rule
tags:
- github
- dev
Expand Down
Loading