From 2c827e82ac1ee14864128ad0670d1c783a078599 Mon Sep 17 00:00:00 2001 From: michaelhorty Date: Thu, 8 Feb 2024 11:22:19 -0500 Subject: [PATCH] Adding new queries SBOM, Tags and others --- request/addTag.query.json | 12 + request/addTag.variables.json | 1 + request/getAllTags.query.json | 13 + request/getAllTags.variables.json | 1 + request/getAppInfo.query.json | 344 ++++---- request/getAppInfo.variables.json | 8 +- request/getAppInventory.query.json | 34 +- request/getAppInventory.variables.json | 18 +- request/getApps.query.json | 140 ++-- request/getApps.variables.json | 10 +- request/getAppsShort.query.json | 13 + request/getAppsShort.variables.json | 3 + request/getAppsTags.query.json | 15 + request/getAppsTags.variables.json | 9 + request/getIssues.query.json | 80 +- request/getIssues.variables.json | 26 +- request/getSbomFilters.query.json | 125 +++ request/getSbomFilters.variables.json | 11 + request/getSbomLibStats.query.json | 43 + request/getSbomLibStats.variables.json | 11 + request/getSbomLibs.query.json | 56 ++ request/getSbomLibs.variables.json | 11 + request/getSbomShort.query.json | 19 + request/getSbomShort.variables.json | 11 + request/getSingleIssue.query.json | 1040 ++++++++++++------------ request/getSingleIssue.variables.json | 8 +- request/modifyAppsTags.query.json | 5 + request/modifyAppsTags.variables.json | 1 + 28 files changed, 1202 insertions(+), 866 deletions(-) create mode 100644 request/addTag.query.json create mode 100644 request/addTag.variables.json create mode 100644 request/getAllTags.query.json create mode 100644 request/getAllTags.variables.json create mode 100644 request/getAppsShort.query.json create mode 100644 request/getAppsShort.variables.json create mode 100644 request/getAppsTags.query.json create mode 100644 request/getAppsTags.variables.json create mode 100644 request/getSbomFilters.query.json create mode 100644 request/getSbomFilters.variables.json create mode 100644 request/getSbomLibStats.query.json create mode 100644 request/getSbomLibStats.variables.json create mode 100644 request/getSbomLibs.query.json create mode 100644 request/getSbomLibs.variables.json create mode 100644 request/getSbomShort.query.json create mode 100644 request/getSbomShort.variables.json create mode 100644 request/modifyAppsTags.query.json create mode 100644 request/modifyAppsTags.variables.json diff --git a/request/addTag.query.json b/request/addTag.query.json new file mode 100644 index 0000000..d4006d8 --- /dev/null +++ b/request/addTag.query.json @@ -0,0 +1,12 @@ +mutation AddTag($input: AddTagInput!) { + addTags(input: $input) { + tags { + tagType + tagId + name + isOxTag + displayName + createdBy + } + } +} \ No newline at end of file diff --git a/request/addTag.variables.json b/request/addTag.variables.json new file mode 100644 index 0000000..794ad12 --- /dev/null +++ b/request/addTag.variables.json @@ -0,0 +1 @@ +{"input":{"tagsInput":[{"displayName":"neatsun","name":"neatsun","tagType":"simple"}]}} diff --git a/request/getAllTags.query.json b/request/getAllTags.query.json new file mode 100644 index 0000000..f5a9191 --- /dev/null +++ b/request/getAllTags.query.json @@ -0,0 +1,13 @@ +query GetAllTags { + getAllTags { + tags { + tagId + name + displayName + tagType + createdBy + isOxTag + } + } + } + \ No newline at end of file diff --git a/request/getAllTags.variables.json b/request/getAllTags.variables.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/request/getAllTags.variables.json @@ -0,0 +1 @@ +{} diff --git a/request/getAppInfo.query.json b/request/getAppInfo.query.json index d4f29dc..1f5b916 100644 --- a/request/getAppInfo.query.json +++ b/request/getAppInfo.query.json @@ -1,173 +1,173 @@ -query GetSingleApplicationInfo($getSingleApplicationInput: SingleApplicationInput) { - getSingleApplicationInfo(getSingleApplicationInput: $getSingleApplicationInput) { - appId - issues - appName - branch - branchesCount - businessPriority - codeChanges - fakeApp - link - commitCount - createdAt - creator - daysSinceLastCodeChange - daysSinceRepoCreation - deployedProd - filesCount - forksCount - hasDownloads - pipelineScans - irrelevantReasons - isMonoRepoChild - monoRepoParent - monorepoChildrenCount - sbomCount - monorepoChildrenAppIds - languages { - language - languagePercentage - } - lastCodeChange - new - overrideRelevance - overridePriority - publicVisibility - pullCount - pushCount - relevant - risk - scanId - scannedAt - secInfrastructure { - label - clientCoverage - oxCoverage - noCoverage - notApplicable - } - securityPosture - size - tagsCount - type - updated - userCount - version - violationCount - watchersCount - yamlsCount - scoreHistory { - appId - appName - score - date - new - updated - scanId - } - applicationFlows { - artifacts { - type - system - subType - hash - size - date - name - linkName - location { - runBy - foundBy - foundIn - link - } - } - cloudDeployments { - type - subType - name - hash - hashType - location { - runBy - foundBy - foundIn - link - } - } - cicdInfo { - type - system - latestDate - lastMonthJobCount - location { - runBy - foundBy - foundIn - link - } - } - orchestrators { - type - system - hash - size - date - name - location { - runBy - foundBy - foundIn - link - } - } - kubernetes { - type - system - hash - subType - size - date - location { - runBy - foundBy - foundIn - link - } - } - repository { - type - system - date - location { - runBy - foundBy - foundIn - link - } - } - } - isSbomPresent - appOwners { - name - email - roles - } - pipeline { - jobId - jobTriggeredAt - scanResult - issuesCount - jobTriggeredBy - jobUrl - } - tags { - tagId - name - displayName - createdBy - isOxTag - } - } +query GetSingleApplicationInfo($getSingleApplicationInput: SingleApplicationInput) { + getSingleApplicationInfo(getSingleApplicationInput: $getSingleApplicationInput) { + appId + issues + appName + branch + branchesCount + businessPriority + codeChanges + fakeApp + link + commitCount + createdAt + creator + daysSinceLastCodeChange + daysSinceRepoCreation + deployedProd + filesCount + forksCount + hasDownloads + pipelineScans + irrelevantReasons + isMonoRepoChild + monoRepoParent + monorepoChildrenCount + sbomCount + monorepoChildrenAppIds + languages { + language + languagePercentage + } + lastCodeChange + new + overrideRelevance + overridePriority + publicVisibility + pullCount + pushCount + relevant + risk + scanId + scannedAt + secInfrastructure { + label + clientCoverage + oxCoverage + noCoverage + notApplicable + } + securityPosture + size + tagsCount + type + updated + userCount + version + violationCount + watchersCount + yamlsCount + scoreHistory { + appId + appName + score + date + new + updated + scanId + } + applicationFlows { + artifacts { + type + system + subType + hash + size + date + name + linkName + location { + runBy + foundBy + foundIn + link + } + } + cloudDeployments { + type + subType + name + hash + hashType + location { + runBy + foundBy + foundIn + link + } + } + cicdInfo { + type + system + latestDate + lastMonthJobCount + location { + runBy + foundBy + foundIn + link + } + } + orchestrators { + type + system + hash + size + date + name + location { + runBy + foundBy + foundIn + link + } + } + kubernetes { + type + system + hash + subType + size + date + location { + runBy + foundBy + foundIn + link + } + } + repository { + type + system + date + location { + runBy + foundBy + foundIn + link + } + } + } + isSbomPresent + appOwners { + name + email + roles + } + pipeline { + jobId + jobTriggeredAt + scanResult + issuesCount + jobTriggeredBy + jobUrl + } + tags { + tagId + name + displayName + createdBy + isOxTag + } + } } \ No newline at end of file diff --git a/request/getAppInfo.variables.json b/request/getAppInfo.variables.json index 00afa41..b3367d4 100644 --- a/request/getAppInfo.variables.json +++ b/request/getAppInfo.variables.json @@ -1,5 +1,5 @@ -{ - "getSingleApplicationInput": { - "applicationId": "584352228" - } +{ + "getSingleApplicationInput": { + "applicationId": "584352228" + } } \ No newline at end of file diff --git a/request/getAppInventory.query.json b/request/getAppInventory.query.json index f7a3201..acbcb8c 100644 --- a/request/getAppInventory.query.json +++ b/request/getAppInventory.query.json @@ -1,18 +1,18 @@ -query FetchInventory($getDashboardInput: FetchDashboardInput) { - getInventoryResult(getInventoryInput: $getDashboardInput) { - inventory { - name - label - count - delta - trend - tooltip { - appId - appName - businessPriority - } - } - totalApps - notRelevantApps - } +query FetchInventory($getDashboardInput: FetchDashboardInput) { + getInventoryResult(getInventoryInput: $getDashboardInput) { + inventory { + name + label + count + delta + trend + tooltip { + appId + appName + businessPriority + } + } + totalApps + notRelevantApps + } } \ No newline at end of file diff --git a/request/getAppInventory.variables.json b/request/getAppInventory.variables.json index 8aaeba6..ce73526 100644 --- a/request/getAppInventory.variables.json +++ b/request/getAppInventory.variables.json @@ -1,10 +1,10 @@ -{ - "getDashboardInput": { - "owners": [], - "filters": [], - "dateRange": { - "from": 1695248962469, - "to": 9999999999999 - } - } +{ + "getDashboardInput": { + "owners": [], + "filters": [], + "dateRange": { + "from": 1695248962469, + "to": 9999999999999 + } + } } \ No newline at end of file diff --git a/request/getApps.query.json b/request/getApps.query.json index 909d3ff..24fc036 100644 --- a/request/getApps.query.json +++ b/request/getApps.query.json @@ -1,71 +1,71 @@ -query GetApplications($getApplicationsInput: GetApplicationsInput) { - getApplications(getApplicationsInput: $getApplicationsInput) { - applications { - appId - appName - risk - type - userCount - codeChanges - fakeApp - lastCodeChange - securityPosture - businessPriority - isSbomPresent - isMonoRepoChild - monoRepoParent - overridePriority - issuesBySeverity { - appox - critical - high - medium - low - info - } - categories { - categoryName - categoryId - catId - severities { - info - low - medium - high - critical - appox - } - severityScore - score - total - isNa - reason - } - appOwners { - name - email - roles - } - pipeline { - jobId - jobTriggeredAt - scanResult - issuesCount - jobTriggeredBy - jobUrl - } - tags { - tagId - name - displayName - tagType - createdBy - isOxTag - } - } - offset - total - totalFilteredApps - totalIrrelevantApps - } +query GetApplications($getApplicationsInput: GetApplicationsInput) { + getApplications(getApplicationsInput: $getApplicationsInput) { + applications { + appId + appName + risk + type + userCount + codeChanges + fakeApp + lastCodeChange + securityPosture + businessPriority + isSbomPresent + isMonoRepoChild + monoRepoParent + overridePriority + issuesBySeverity { + appox + critical + high + medium + low + info + } + categories { + categoryName + categoryId + catId + severities { + info + low + medium + high + critical + appox + } + severityScore + score + total + isNa + reason + } + appOwners { + name + email + roles + } + pipeline { + jobId + jobTriggeredAt + scanResult + issuesCount + jobTriggeredBy + jobUrl + } + tags { + tagId + name + displayName + tagType + createdBy + isOxTag + } + } + offset + total + totalFilteredApps + totalIrrelevantApps + } } \ No newline at end of file diff --git a/request/getApps.variables.json b/request/getApps.variables.json index 152d4eb..defdb42 100644 --- a/request/getApps.variables.json +++ b/request/getApps.variables.json @@ -1,6 +1,6 @@ -{ - "getApplicationsInput": { - "offset": 0, - "limit": 1000 - } +{ + "getApplicationsInput": { + "offset": 0, + "limit": 1000 + } } \ No newline at end of file diff --git a/request/getAppsShort.query.json b/request/getAppsShort.query.json new file mode 100644 index 0000000..a76f9c0 --- /dev/null +++ b/request/getAppsShort.query.json @@ -0,0 +1,13 @@ +query GetApplications($getApplicationsInput: GetApplicationsInput) { + getApplications(getApplicationsInput: $getApplicationsInput) { + applications { + appId + appName + link + tags { + tagId + name + displayName + } + }}} + \ No newline at end of file diff --git a/request/getAppsShort.variables.json b/request/getAppsShort.variables.json new file mode 100644 index 0000000..93719b8 --- /dev/null +++ b/request/getAppsShort.variables.json @@ -0,0 +1,3 @@ +{"getApplicationsInput": { + "offset": 0, + "limit": 200000}} diff --git a/request/getAppsTags.query.json b/request/getAppsTags.query.json new file mode 100644 index 0000000..23ff0cb --- /dev/null +++ b/request/getAppsTags.query.json @@ -0,0 +1,15 @@ +query GetAppsTags($input: GetAppsTagsInput!) { + getAppsTags(input: $input) { + appsTags { + appId + tag { + tagId + name + displayName + tagType + createdBy + isOxTag + } + } + } + } \ No newline at end of file diff --git a/request/getAppsTags.variables.json b/request/getAppsTags.variables.json new file mode 100644 index 0000000..f2ce33a --- /dev/null +++ b/request/getAppsTags.variables.json @@ -0,0 +1,9 @@ +{ + "input": { + "appsIds": [ + "*Bitbucket-Settings (oxsecurity)", + "{a6d51cf9-4029-4163-89fd-97987351d81d}", + "584352228" + ] + } +} diff --git a/request/getIssues.query.json b/request/getIssues.query.json index 4454209..9bafe9c 100644 --- a/request/getIssues.query.json +++ b/request/getIssues.query.json @@ -1,41 +1,41 @@ -query GetIssues($isDemo: Boolean, $getIssuesInput: IssuesInput) { - getIssues(isDemo: $isDemo, getIssuesInput: $getIssuesInput) { - issues { - id - issueId - mainTitle - secondTitle - name - created - scanId - owners - occurrences - comment - severity - policy { - id - name - detailedDescription - } - category { - name - categoryId - } - category { - name - } - app { - id - name - businessPriority - type - fakeApp - } - createdAt - } - totalIssues - totalFilteredIssues - totalResolvedIssues - offset - } +query GetIssues($isDemo: Boolean, $getIssuesInput: IssuesInput) { + getIssues(isDemo: $isDemo, getIssuesInput: $getIssuesInput) { + issues { + id + issueId + mainTitle + secondTitle + name + created + scanId + owners + occurrences + comment + severity + policy { + id + name + detailedDescription + } + category { + name + categoryId + } + category { + name + } + app { + id + name + businessPriority + type + fakeApp + } + createdAt + } + totalIssues + totalFilteredIssues + totalResolvedIssues + offset + } } \ No newline at end of file diff --git a/request/getIssues.variables.json b/request/getIssues.variables.json index f12e9f8..1b7a18c 100644 --- a/request/getIssues.variables.json +++ b/request/getIssues.variables.json @@ -1,25 +1 @@ -{ - "getIssuesInput": { - "owners": [], - "offset": 0, - "limit": 50, - "filters": { - "criticality": [ - "Critical" - ] - }, - "sort": { - "fields": [ - "Severity" - ], - "order": [ - "DESC" - ] - }, - "dateRange": { - "from": 1684993734665, - "to": 9999999999999 - } - }, - "isDemo": false - } \ No newline at end of file +{"getIssuesInput":{"owners":[],"offset":0,"limit":1000,"filters":{"criticality":["Appoxalypse","Critical","High","Medium","Low","Info"]}},"sort":{"fields":["Severity"],"order":["DESC"]},"dateRange":{"from":1,"to":1701786142780},"isDemo":true} diff --git a/request/getSbomFilters.query.json b/request/getSbomFilters.query.json new file mode 100644 index 0000000..9ab63de --- /dev/null +++ b/request/getSbomFilters.query.json @@ -0,0 +1,125 @@ +query GetSbomLibrariesFilters($getApplicationsSbom: GetApplicationsSbom) { + getSbomLibrariesFilters(getApplicationsSbom: $getApplicationsSbom) { + total + libraryNames { + id + filterId + label + count + percent + } + libraryVersions { + id + filterId + label + count + percent + } + apps { + id + filterId + label + count + percent + } + source { + id + filterId + label + count + percent + } + dependencyTypes { + id + filterId + label + count + percent + } + licenses { + id + filterId + label + count + percent + } + copyrights { + id + filterId + label + count + percent + } + packageNames { + id + filterId + label + count + percent + } + severities { + id + filterId + label + count + percent + } + packageInfos { + id + filterId + label + count + percent + } + packageManagers { + id + filterId + label + count + percent + } + cve { + id + filterId + label + count + percent + } + languages { + id + filterId + label + count + percent + } + os { + id + filterId + label + count + percent + } + baseImage { + id + filterId + label + count + percent + } + registryName { + id + filterId + label + count + percent + } + image { + id + filterId + label + count + percent + } + } + } + \ No newline at end of file diff --git a/request/getSbomFilters.variables.json b/request/getSbomFilters.variables.json new file mode 100644 index 0000000..aaaac83 --- /dev/null +++ b/request/getSbomFilters.variables.json @@ -0,0 +1,11 @@ +{ + "getApplicationsSbom": { + "search": "", + "limit": 100, + "offset": 0, + "filters": {}, + "sbomSearch": [], + "owners": [] + } + } + \ No newline at end of file diff --git a/request/getSbomLibStats.query.json b/request/getSbomLibStats.query.json new file mode 100644 index 0000000..a486d5a --- /dev/null +++ b/request/getSbomLibStats.query.json @@ -0,0 +1,43 @@ +query GetSbomLibraries($getSbomLibrariesInput: GetApplicationsSbom) { + getSbomLibraries(getApplicationsSbom: $getSbomLibrariesInput) { + sbomLibs { + id + appType + libId + libraryName + libraryVersion + license + appId + appName + dependencyType + source + location + appId + locationLink + appLink + pkgName + copyWriteInfo + copyWriteInfoLink + libLink + notPopular + licenseIssue + notMaintained + isDeprecated + dependencyLevel + notUpdated + notImported + vulnerabilityCounts { + appox + critical + high + medium + low + info + } + } + offset + total + totalFilteredSbomLibs + } + } + \ No newline at end of file diff --git a/request/getSbomLibStats.variables.json b/request/getSbomLibStats.variables.json new file mode 100644 index 0000000..1d033da --- /dev/null +++ b/request/getSbomLibStats.variables.json @@ -0,0 +1,11 @@ +{ + "getSbomLibrariesInput": { + "offset": 0, + "filters": {}, + "search": "", + "limit": 20000, + "sbomSearch": [], + "owners": [] + } + } + \ No newline at end of file diff --git a/request/getSbomLibs.query.json b/request/getSbomLibs.query.json new file mode 100644 index 0000000..7fb57d5 --- /dev/null +++ b/request/getSbomLibs.query.json @@ -0,0 +1,56 @@ +query GetSbomLibraries($getSbomLibrariesInput: GetApplicationsSbom) { + getSbomLibraries(getApplicationsSbom: $getSbomLibrariesInput) { + sbomLibs { + id + appType + libId + libraryName + libraryVersion + license + appName + dependencyType + source + location + appId + locationLink + appLink + pkgName + copyWriteInfo + copyWriteInfoLink + libLink + artifactInSbomLibs { + image + imageLink + imageCreatedAt + sha + os + osVersion + baseImage + baseImageVersion + tag + layer + registryName + } + vulnerabilityCounts { + appox + critical + high + medium + low + info + } + triggerPackage + notPopular + licenseIssue + notMaintained + isDeprecated + dependencyLevel + notUpdated + notImported + } + offset + total + totalFilteredSbomLibs + } + } + \ No newline at end of file diff --git a/request/getSbomLibs.variables.json b/request/getSbomLibs.variables.json new file mode 100644 index 0000000..fb557c3 --- /dev/null +++ b/request/getSbomLibs.variables.json @@ -0,0 +1,11 @@ +{ + "getSbomLibrariesInput": { + "offset": 0, + "filters": {}, + "search": "", + "limit": 2000, + "sbomSearch": [], + "owners": [] + } + } + \ No newline at end of file diff --git a/request/getSbomShort.query.json b/request/getSbomShort.query.json new file mode 100644 index 0000000..c7a4242 --- /dev/null +++ b/request/getSbomShort.query.json @@ -0,0 +1,19 @@ +query GetSbomLibraries($getSbomLibrariesInput: GetApplicationsSbom) { + getSbomLibraries(getApplicationsSbom: $getSbomLibrariesInput) { + sbomLibs { + id + appType + libId + libraryName + libraryVersion + license + appId + appName + dependencyType + } + offset + total + totalFilteredSbomLibs + } + } + \ No newline at end of file diff --git a/request/getSbomShort.variables.json b/request/getSbomShort.variables.json new file mode 100644 index 0000000..1d033da --- /dev/null +++ b/request/getSbomShort.variables.json @@ -0,0 +1,11 @@ +{ + "getSbomLibrariesInput": { + "offset": 0, + "filters": {}, + "search": "", + "limit": 20000, + "sbomSearch": [], + "owners": [] + } + } + \ No newline at end of file diff --git a/request/getSingleIssue.query.json b/request/getSingleIssue.query.json index 8b9838a..08903d1 100644 --- a/request/getSingleIssue.query.json +++ b/request/getSingleIssue.query.json @@ -1,521 +1,521 @@ -query GetSingleIssueInfo($getSingleIssueInput: SingleIssueInput) { - getSingleIssueInfo(getSingleIssueInput: $getSingleIssueInput) { - dependencyGraph { - edges { - v - w - } - nodes { - name - issues { - appox - critical - info - high - low - medium - } - height - id - position { - x - y - } - vulnerable - } - allEdges { - v - w - } - allNodes { - name - issues { - appox - critical - info - high - low - medium - } - height - id - position { - x - y - } - vulnerable - } - } - sbom { - id - libId - license - appName - dependencyType - location - appId - locationLink - appLink - pkgName - copyWriteInfo - copyWriteInfoLink - libLink - libraryName - libraryVersion - latestVersion - latestVersionDate - stars - forks - openIssues - maintainers - notPopular - licenseIssue - notMaintained - isDeprecated - notImported - notUpdated - dependencyLevel - language - downloads - contributors - packageManager - packageManagerLink - source - sourceLink - triggerPackage - } - id - issueId - gptInfo { - createdAt - user - gptResponse - } - - - isGPTFixAvailable - name - scanId - created - scanDate - mainTitle - secondTitle - description - severity - owners - ruleId - originalToolSeverity - exclusionCategory - occurrences - comment - learnMore - exclusionId - isMonoRepoChild - monoRepoParent - isFixAvailable - prDeatils { - sourceControlType - repo - prURL - prBranchName - commitMessage - commiter - comment - date - prTitle - prBody - prStatus - prApprover - prReviewer - prMergeTime - } - autoFix { - fixType - fixTitle - fixDescription - activeFix { - fixId - fixURL - } - fixPR { - issueBranch - commitMessage - fixFiles { - filePath - newFileContent - } - } - isFixApplied - fixAppliedBy - sourceControlType - fixDate - fixInput { - type - name - options { - name - metadata - } - } - } - extraInfo { - key - value - } - resource { - id - type - } - app { - id - name - businessPriority - type - originBranchName - repoId - organization - repoName - applicationFlows { - artifacts { - type - system - subType - hash - size - date - name - linkName - location { - runBy - foundBy - foundIn - link - } - } - cloudDeployments { - type - subType - name - hash - hashType - location { - runBy - foundBy - foundIn - link - } - } - cicdInfo { - type - system - latestDate - lastMonthJobCount - location { - runBy - foundBy - foundIn - link - } - } - orchestrators { - type - system - hash - size - date - name - location { - runBy - foundBy - foundIn - link - } - } - kubernetes { - type - system - hash - subType - size - date - location { - runBy - foundBy - foundIn - link - } - } - repository { - type - system - date - location { - runBy - foundBy - foundIn - link - } - } - } - } - policy { - id - name - detailedDescription - } - issueId - category { - name - categoryId - } - isPRAvailable - fixes { - settingType - tooltip - description - warning - confirmation - inputs { - type - name - displayName - maxSelect - minSelect - options { - isDisabled - name - displayName - selected - metadata - info - } - multiSelect - } - } - aggregations { - summary { - summary - comment - } - type - items { - - stars - forks - downloads - vulBySeverity - nameAndVer - sourceRepoName - sourceRepoLink - sourceCreationDate - sourceLastModifyDate - destinationRepoName - destinationRepoLink - destinationCreationDate - destinationLastModifyDate - destinationRepoVisibility - reasons - additionalToolData - devOperationDate - adminOperationDate - reviewOperation - reviewOperationDate - hashAggId - url - events - allEvents - pushType - sha - title - link - mergedBy - fileName - fileUri - date - fileCount - diffInDays - reviewers - commitLink - user - userLink - userAvatar - devOperation - adminOperation - orgRole - earliestActivityDate - repoPermissions - adminLocation - email - pullRequestsCount - diffFromNowToCreatedAtInDays - username - accessLevel - createdAt - lastAccess - match - commitBy - reputation - resource - service - region - accountName - secret - image - tag - dockerVer - os - imageCreatedAt - pkgCount - binariesCount - snippet - size - pushedAt - source - ruleId - realMatch - filePath - lockfile - _id - accountId - snippetLineNumber - language - daysOpen - aggId - repo - repoCreator - lastCodeDate - lastAdminOperation - exclusionId - numberOfReposDomainAppear - } - } - exclusions { - label - type - id - isDefault - } - recommendation - violationInfoTitle - sourceTools - cwe - fixLink - fixIssue { - fixType - activeFix { - fixId - fixURL - } - fixPR { - issueBranch - commitMessage - fixFiles { - filePath - newFileContent - } - } - } - dependencyChain - publicExploitLink - cweList { - name - description - url - } - lowerSeverityReason - scaVulnerabilities { - cwe { - name - shortName - url - } - cve - dependencyChain - cveLink - cvsVer - exploitInTheWildLink - description - dateDiscovered - minorVerWithFix - majorVerWithFix - exploitRequirement - exploitCode - originalSeverity - } - directSCAVulnerability { - cwe { - name - shortName - url - } - dependencyChain - libName - libVersion - chainDepth - cve - cveLink - cvsVer - exploitInTheWildLink - description - dateDiscovered - minorVerWithFix - majorVerWithFix - exploitRequirement - exploitCode - originalSeverity - } - scaTriggerPkg - indirectSupported - noneDirectSCAVulnerability { - cwe { - name - shortName - url - } - dependencyChain - libName - libVersion - chainDepth - cve - cveLink - cvsVer - exploitInTheWildLink - description - dateDiscovered - minorVerWithFix - majorVerWithFix - exploitRequirement - exploitCode - originalSeverity - } - severityChangedReason { - changeNumber - reason - shortName - changeCategory - extraInfo { - key - value - link - snippet { - snippetLineNumber - language - text - fileName - } - } - } - tickets { - key - provider - ticketId - link - } - oscarData { - id - name - description - url - } - } +query GetSingleIssueInfo($getSingleIssueInput: SingleIssueInput) { + getSingleIssueInfo(getSingleIssueInput: $getSingleIssueInput) { + dependencyGraph { + edges { + v + w + } + nodes { + name + issues { + appox + critical + info + high + low + medium + } + height + id + position { + x + y + } + vulnerable + } + allEdges { + v + w + } + allNodes { + name + issues { + appox + critical + info + high + low + medium + } + height + id + position { + x + y + } + vulnerable + } + } + sbom { + id + libId + license + appName + dependencyType + location + appId + locationLink + appLink + pkgName + copyWriteInfo + copyWriteInfoLink + libLink + libraryName + libraryVersion + latestVersion + latestVersionDate + stars + forks + openIssues + maintainers + notPopular + licenseIssue + notMaintained + isDeprecated + notImported + notUpdated + dependencyLevel + language + downloads + contributors + packageManager + packageManagerLink + source + sourceLink + triggerPackage + } + id + issueId + gptInfo { + createdAt + user + gptResponse + } + + + isGPTFixAvailable + name + scanId + created + scanDate + mainTitle + secondTitle + description + severity + owners + ruleId + originalToolSeverity + exclusionCategory + occurrences + comment + learnMore + exclusionId + isMonoRepoChild + monoRepoParent + isFixAvailable + prDeatils { + sourceControlType + repo + prURL + prBranchName + commitMessage + commiter + comment + date + prTitle + prBody + prStatus + prApprover + prReviewer + prMergeTime + } + autoFix { + fixType + fixTitle + fixDescription + activeFix { + fixId + fixURL + } + fixPR { + issueBranch + commitMessage + fixFiles { + filePath + newFileContent + } + } + isFixApplied + fixAppliedBy + sourceControlType + fixDate + fixInput { + type + name + options { + name + metadata + } + } + } + extraInfo { + key + value + } + resource { + id + type + } + app { + id + name + businessPriority + type + originBranchName + repoId + organization + repoName + applicationFlows { + artifacts { + type + system + subType + hash + size + date + name + linkName + location { + runBy + foundBy + foundIn + link + } + } + cloudDeployments { + type + subType + name + hash + hashType + location { + runBy + foundBy + foundIn + link + } + } + cicdInfo { + type + system + latestDate + lastMonthJobCount + location { + runBy + foundBy + foundIn + link + } + } + orchestrators { + type + system + hash + size + date + name + location { + runBy + foundBy + foundIn + link + } + } + kubernetes { + type + system + hash + subType + size + date + location { + runBy + foundBy + foundIn + link + } + } + repository { + type + system + date + location { + runBy + foundBy + foundIn + link + } + } + } + } + policy { + id + name + detailedDescription + } + issueId + category { + name + categoryId + } + isPRAvailable + fixes { + settingType + tooltip + description + warning + confirmation + inputs { + type + name + displayName + maxSelect + minSelect + options { + isDisabled + name + displayName + selected + metadata + info + } + multiSelect + } + } + aggregations { + summary { + summary + comment + } + type + items { + + stars + forks + downloads + vulBySeverity + nameAndVer + sourceRepoName + sourceRepoLink + sourceCreationDate + sourceLastModifyDate + destinationRepoName + destinationRepoLink + destinationCreationDate + destinationLastModifyDate + destinationRepoVisibility + reasons + additionalToolData + devOperationDate + adminOperationDate + reviewOperation + reviewOperationDate + hashAggId + url + events + allEvents + pushType + sha + title + link + mergedBy + fileName + fileUri + date + fileCount + diffInDays + reviewers + commitLink + user + userLink + userAvatar + devOperation + adminOperation + orgRole + earliestActivityDate + repoPermissions + adminLocation + email + pullRequestsCount + diffFromNowToCreatedAtInDays + username + accessLevel + createdAt + lastAccess + match + commitBy + reputation + resource + service + region + accountName + secret + image + tag + dockerVer + os + imageCreatedAt + pkgCount + binariesCount + snippet + size + pushedAt + source + ruleId + realMatch + filePath + lockfile + _id + accountId + snippetLineNumber + language + daysOpen + aggId + repo + repoCreator + lastCodeDate + lastAdminOperation + exclusionId + numberOfReposDomainAppear + } + } + exclusions { + label + type + id + isDefault + } + recommendation + violationInfoTitle + sourceTools + cwe + fixLink + fixIssue { + fixType + activeFix { + fixId + fixURL + } + fixPR { + issueBranch + commitMessage + fixFiles { + filePath + newFileContent + } + } + } + dependencyChain + publicExploitLink + cweList { + name + description + url + } + lowerSeverityReason + scaVulnerabilities { + cwe { + name + shortName + url + } + cve + dependencyChain + cveLink + cvsVer + exploitInTheWildLink + description + dateDiscovered + minorVerWithFix + majorVerWithFix + exploitRequirement + exploitCode + originalSeverity + } + directSCAVulnerability { + cwe { + name + shortName + url + } + dependencyChain + libName + libVersion + chainDepth + cve + cveLink + cvsVer + exploitInTheWildLink + description + dateDiscovered + minorVerWithFix + majorVerWithFix + exploitRequirement + exploitCode + originalSeverity + } + scaTriggerPkg + indirectSupported + noneDirectSCAVulnerability { + cwe { + name + shortName + url + } + dependencyChain + libName + libVersion + chainDepth + cve + cveLink + cvsVer + exploitInTheWildLink + description + dateDiscovered + minorVerWithFix + majorVerWithFix + exploitRequirement + exploitCode + originalSeverity + } + severityChangedReason { + changeNumber + reason + shortName + changeCategory + extraInfo { + key + value + link + snippet { + snippetLineNumber + language + text + fileName + } + } + } + tickets { + key + provider + ticketId + link + } + oscarData { + id + name + description + url + } + } } \ No newline at end of file diff --git a/request/getSingleIssue.variables.json b/request/getSingleIssue.variables.json index 8c2c9f0..ce314fb 100644 --- a/request/getSingleIssue.variables.json +++ b/request/getSingleIssue.variables.json @@ -1,5 +1,5 @@ -{ - "getSingleIssueInput": { - "issueId": "584352228-oxPolicy_securityScan_120-org.springframework:spring-web_5.3.19" - } +{ + "getSingleIssueInput": { + "issueId": "584352228-oxPolicy_securityScan_120-org.springframework:spring-web_5.3.19" + } } \ No newline at end of file diff --git a/request/modifyAppsTags.query.json b/request/modifyAppsTags.query.json new file mode 100644 index 0000000..bf40d7c --- /dev/null +++ b/request/modifyAppsTags.query.json @@ -0,0 +1,5 @@ +mutation ModifyAppsTags($input: ModifyAppsTagsInput!) { + modifyAppsTags(input: $input) { + acknowledge + } + } \ No newline at end of file diff --git a/request/modifyAppsTags.variables.json b/request/modifyAppsTags.variables.json new file mode 100644 index 0000000..a931184 --- /dev/null +++ b/request/modifyAppsTags.variables.json @@ -0,0 +1 @@ +{"input":{"addedTagsIds":["fa573cdb-b3e1-4c16-be10-fc000a743cad"],"removedTagsIds":[],"appIds":["647669373","585531998"]}}