Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #48 from JupiterOne/INT-10686-add-enable-findings-…
Browse files Browse the repository at this point in the history
…ingestion

Add enableFindingsIngestion to the instanceConfigFields.ts
  • Loading branch information
VDubber authored Mar 29, 2024
2 parents b5aca84 + 536761e commit cb7569c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
BASE_URL=
API_TOKEN=
API_TOKEN=
ENABLE_FINDINGS_INGESTION=
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ and this project adheres to

## [Unreleased]

## 1.2.0 2024-03-29

## Changed

- Added enableFindingsIngestion to config Field map to allow its use by
Collectors.

## 1.1.0 2024-03-15

- Add Dockerfile and .github/workflows/package-publish.yml to support collectors
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupiterone/graph-sonarqube",
"version": "1.1.0",
"version": "1.2.0",
"description": "Sonarqube integration for JupiterOne",
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions src/getStepStartStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ import { SonarqubeIntegrationConfig } from './types';
export default function getStepStartStates(
context: IntegrationExecutionContext<SonarqubeIntegrationConfig>,
): StepStartStates {
context.logger.warn(
{
enableFindingsIngestion: !!context.instance.config
.enableFindingsIngestion,
},
'Findings ingestion flag',
);

return {
['fetch-account']: {
disabled: false,
Expand Down
5 changes: 5 additions & 0 deletions src/instanceConfigFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ const instanceConfigFields: IntegrationInstanceConfigFieldMap = {
type: 'string',
mask: true,
},
enableFindingsIngestion: {
type: 'boolean',
mask: false,
optional: true,
},
};

export default instanceConfigFields;

0 comments on commit cb7569c

Please sign in to comment.