Skip to content

Commit e5d86d0

Browse files
authored
Create cra-config.yaml (#584)
1 parent ab36b34 commit e5d86d0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yml

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

cra-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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 (comma-separated for multiple scans). 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+
# CRA_ENVIRONMENT_VARIABLES: # An optional map of environment variables for CRA, where the key is the variable name and value is the value. Useful for providing TF_VARs.
7+
# TF_VAR_sample: "sample value"
8+
# TF_VAR_other: "another value"
9+
# ACCOUNT_ID: "" # The IBM Cloud Account ID input for CRA SCC scan. If not provided, a default global value will be used.
10+
# PROFILE_ID: "" # The Profile ID input for CRA SCC scan. Ensure to use a US-specific ID. If not provided, a default global value will be used.

0 commit comments

Comments
 (0)