Skip to content

Commit f9b3ac8

Browse files
authored
fix: add missing disabling of evidence repo tool integration (#626)
1 parent 0aeacf7 commit f9b3ac8

File tree

10 files changed

+40
-0
lines changed

10 files changed

+40
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ statement instead the previous block.
529529
| <a name="input_event_notifications_tool_name"></a> [event\_notifications\_tool\_name](#input\_event\_notifications\_tool\_name) | The name of the Event Notifications integration. | `string` | `"Event Notifications"` | no |
530530
| <a name="input_evidence_group"></a> [evidence\_group](#input\_evidence\_group) | Specify the Git user or group for the evidence repository. | `string` | `""` | no |
531531
| <a name="input_evidence_repo_auth_type"></a> [evidence\_repo\_auth\_type](#input\_evidence\_repo\_auth\_type) | Select the method of authentication that is used to access the Git repository. Valid values are 'oauth' or 'pat'. Defaults to `oauth` when unset. `pat` is a git `personal access token`. | `string` | `""` | no |
532+
| <a name="input_evidence_repo_enabled"></a> [evidence\_repo\_enabled](#input\_evidence\_repo\_enabled) | Set to `true` to enable the evidence repository tool integration. | `bool` | `true` | no |
532533
| <a name="input_evidence_repo_existing_git_id"></a> [evidence\_repo\_existing\_git\_id](#input\_evidence\_repo\_existing\_git\_id) | Set this value to `github` for github.com, or to the GUID of a custom GitHub Enterprise server. | `string` | `""` | no |
533534
| <a name="input_evidence_repo_existing_git_provider"></a> [evidence\_repo\_existing\_git\_provider](#input\_evidence\_repo\_existing\_git\_provider) | Git provider for evidence repo. If not set will default to `hostedgit`. | `string` | `""` | no |
534535
| <a name="input_evidence_repo_existing_url"></a> [evidence\_repo\_existing\_url](#input\_evidence\_repo\_existing\_url) | Set to use an existing evidence repository. | `string` | `""` | no |

ibm_catalog.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,13 @@
15341534
"description": "The name of the repository integration owner.",
15351535
"required": false
15361536
},
1537+
{
1538+
"key": "evidence_repo_enabled",
1539+
"type": "boolean",
1540+
"default_value": true,
1541+
"description": "Set to `true` to enable the evidence repository tool integration.",
1542+
"required": false
1543+
},
15371544
{
15381545
"key": "evidence_repo_name",
15391546
"type": "string",
@@ -3745,6 +3752,13 @@
37453752
"description": "The name of the repository integration owner.",
37463753
"required": false
37473754
},
3755+
{
3756+
"key": "evidence_repo_enabled",
3757+
"type": "boolean",
3758+
"default_value": true,
3759+
"description": "Set to `true` to enable the evidence repository tool integration.",
3760+
"required": false
3761+
},
37483762
{
37493763
"key": "evidence_repo_name",
37503764
"type": "string",

main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ module "devsecops_ci_toolchain" {
481481
pipeline_config_repo_title = var.repo_title
482482

483483
#EVIDENCE REPO
484+
evidence_repo_enabled = var.evidence_repo_enabled
484485
evidence_repo_name = var.evidence_repo_name
485486
evidence_repo_existing_url = var.evidence_repo_existing_url
486487
evidence_source_repo_url = var.evidence_repo_source_url
@@ -756,6 +757,7 @@ module "devsecops_cd_toolchain" {
756757
pipeline_config_repo_title = var.repo_title
757758

758759
#EVIDENCE REPO
760+
evidence_repo_enabled = var.evidence_repo_enabled
759761
evidence_repo_name = var.evidence_repo_name
760762
evidence_repo_url = try(module.devsecops_ci_toolchain[0].evidence_repo_url, var.evidence_repo_existing_url)
761763
evidence_repo_git_provider = local.evidence_repo_existing_git_provider
@@ -1055,6 +1057,7 @@ module "devsecops_cc_toolchain" {
10551057
app_repo_root_url = var.repo_root_url
10561058

10571059
#EVIDENCE REPO
1060+
evidence_repo_enabled = var.evidence_repo_enabled
10581061
evidence_repo_name = var.evidence_repo_name
10591062
evidence_repo_url = try(module.devsecops_ci_toolchain[0].evidence_repo_url, var.evidence_repo_existing_url)
10601063
evidence_repo_git_provider = local.evidence_repo_existing_git_provider

solutions/code-engine/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ No resources.
235235
| <a name="input_event_notifications_tool_name"></a> [event\_notifications\_tool\_name](#input\_event\_notifications\_tool\_name) | The name of the Event Notifications integration. | `string` | `"Event Notifications"` | no |
236236
| <a name="input_evidence_group"></a> [evidence\_group](#input\_evidence\_group) | Specify the Git user or group for the evidence repository. | `string` | `""` | no |
237237
| <a name="input_evidence_repo_auth_type"></a> [evidence\_repo\_auth\_type](#input\_evidence\_repo\_auth\_type) | Select the method of authentication that is used to access the Git repository. Valid values are 'oauth' or 'pat'. Defaults to `oauth` when unset. `pat` is a git `personal access token`. | `string` | `""` | no |
238+
| <a name="input_evidence_repo_enabled"></a> [evidence\_repo\_enabled](#input\_evidence\_repo\_enabled) | Set to `true` to enable the evidence repository tool integration. | `bool` | `true` | no |
238239
| <a name="input_evidence_repo_existing_git_id"></a> [evidence\_repo\_existing\_git\_id](#input\_evidence\_repo\_existing\_git\_id) | Set this value to `github` for github.com, or to the GUID of a custom GitHub Enterprise server. | `string` | `""` | no |
239240
| <a name="input_evidence_repo_existing_git_provider"></a> [evidence\_repo\_existing\_git\_provider](#input\_evidence\_repo\_existing\_git\_provider) | Git provider for evidence repo. If not set will default to `hostedgit`. | `string` | `""` | no |
240241
| <a name="input_evidence_repo_existing_url"></a> [evidence\_repo\_existing\_url](#input\_evidence\_repo\_existing\_url) | Set to use an existing evidence repository. | `string` | `""` | no |

solutions/code-engine/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ module "devsecops_da" {
7777
evidence_repo_git_token_secret_crn = var.evidence_repo_git_token_secret_crn
7878
evidence_repo_git_token_secret_name = var.evidence_repo_git_token_secret_name
7979
evidence_repo_integration_owner = var.evidence_repo_integration_owner
80+
evidence_repo_enabled = var.evidence_repo_enabled
8081
evidence_repo_name = var.evidence_repo_name
8182
evidence_repo_secret_group = var.evidence_repo_secret_group
8283
evidence_repo_source_url = var.evidence_repo_source_url

solutions/code-engine/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,12 @@ variable "evidence_repo_integration_owner" {
459459
default = ""
460460
}
461461

462+
variable "evidence_repo_enabled" {
463+
type = bool
464+
description = "Set to `true` to enable the evidence repository tool integration."
465+
default = true
466+
}
467+
462468
variable "evidence_repo_name" {
463469
type = string
464470
description = "Set to use a custom name for the Evidence repository."

solutions/kubernetes/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ No resources.
234234
| <a name="input_event_notifications_tool_name"></a> [event\_notifications\_tool\_name](#input\_event\_notifications\_tool\_name) | The name of the Event Notifications integration. | `string` | `"Event Notifications"` | no |
235235
| <a name="input_evidence_group"></a> [evidence\_group](#input\_evidence\_group) | Specify the Git user or group for the evidence repository. | `string` | `""` | no |
236236
| <a name="input_evidence_repo_auth_type"></a> [evidence\_repo\_auth\_type](#input\_evidence\_repo\_auth\_type) | Select the method of authentication that is used to access the Git repository. Valid values are 'oauth' or 'pat'. Defaults to `oauth` when unset. `pat` is a git `personal access token`. | `string` | `""` | no |
237+
| <a name="input_evidence_repo_enabled"></a> [evidence\_repo\_enabled](#input\_evidence\_repo\_enabled) | Set to `true` to enable the evidence repository tool integration. | `bool` | `true` | no |
237238
| <a name="input_evidence_repo_existing_git_id"></a> [evidence\_repo\_existing\_git\_id](#input\_evidence\_repo\_existing\_git\_id) | Set this value to `github` for github.com, or to the GUID of a custom GitHub Enterprise server. | `string` | `""` | no |
238239
| <a name="input_evidence_repo_existing_git_provider"></a> [evidence\_repo\_existing\_git\_provider](#input\_evidence\_repo\_existing\_git\_provider) | By default this gets set as 'hostedgit', else set to 'githubconsolidated' for GitHub repositories. | `string` | `""` | no |
239240
| <a name="input_evidence_repo_existing_url"></a> [evidence\_repo\_existing\_url](#input\_evidence\_repo\_existing\_url) | Set to use an existing evidence repository. | `string` | `""` | no |

solutions/kubernetes/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ module "devsecops_da" {
7676
evidence_repo_git_token_secret_crn = var.evidence_repo_git_token_secret_crn
7777
evidence_repo_git_token_secret_name = var.evidence_repo_git_token_secret_name
7878
evidence_repo_integration_owner = var.evidence_repo_integration_owner
79+
evidence_repo_enabled = var.evidence_repo_enabled
7980
evidence_repo_name = var.evidence_repo_name
8081
evidence_repo_secret_group = var.evidence_repo_secret_group
8182
evidence_repo_source_url = var.evidence_repo_source_url

solutions/kubernetes/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,12 @@ variable "evidence_repo_integration_owner" {
452452
default = ""
453453
}
454454

455+
variable "evidence_repo_enabled" {
456+
type = bool
457+
description = "Set to `true` to enable the evidence repository tool integration."
458+
default = true
459+
}
460+
455461
variable "evidence_repo_name" {
456462
type = string
457463
description = "Set to use a custom name for the Evidence repository."

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,12 @@ variable "evidence_repo_integration_owner" {
522522
default = ""
523523
}
524524

525+
variable "evidence_repo_enabled" {
526+
type = bool
527+
description = "Set to `true` to enable the evidence repository tool integration."
528+
default = true
529+
}
530+
525531
variable "evidence_repo_name" {
526532
type = string
527533
description = "Set to use a custom name for the Evidence repository."

0 commit comments

Comments
 (0)