Skip to content

Commit fff72b8

Browse files
chore: cra config (#642)
1 parent badc1e8 commit fff72b8

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ jobs:
1111
secrets: inherit
1212
with:
1313
craSCCv2: true
14-
craTarget: "examples/default"
15-
craRuleIgnoreFile: "cra-tf-validate-ignore-rules.json"
14+
craConfigYamlFile: "cra-config.yaml"

cra-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# More info about this file at https://github.com/terraform-ibm-modules/common-pipeline-assets/blob/main/.github/workflows/terraform-test-pipeline.md#cra-config-yaml
2+
version: "v1"
3+
CRA_TARGETS:
4+
- CRA_TARGET: "examples/default" # Target directory for CRA scan. If not provided, the CRA Scan will not be run.
5+
CRA_IGNORE_RULES_FILE: "cra-tf-validate-ignore-rules.json" # CRA Ignore file to use. If not provided, it checks the repo root directory for `cra-tf-validate-ignore-rules.json`
6+
PROFILE_ID: "0e6e7b5a-817d-4344-ab6f-e5d7a9c49520" # SCC profile ID (currently set to the FSCloud 1.4.0 profile).

cra-tf-validate-ignore-rules.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"description:": "Check whether Cloud Object Storage is enabled with customer-managed encryption and Keep Your Own Key (KYOK)",
1212
"ignore_reason": "This module does not create any Cloud object storage and it is used in an example for testing purpose.",
1313
"is_valid": false
14+
},
15+
{
16+
"scc_rule_id": "rule-216e2449-27d7-4afc-929a-b66e196a9cf9",
17+
"description": "Check whether Flow Logs for VPC are enabled",
18+
"ignore_reason": "This rule should not be failing as we do enable flow logs in the code. Bug reported with CRA: https://github.ibm.com/oneibmcloud/CD-CRA/issues/1907",
19+
"is_valid": false
1420
}
1521
]
1622
}

0 commit comments

Comments
 (0)