Skip to content

Commit 777d0d1

Browse files
feat: update to v2 pipeline (#539)
1 parent 75df1b7 commit 777d0d1

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# any change of this settings.yml file is detected by the GitHub App and
66
# the settings of this repository are updated immediately.
77
#
8-
_extends: repo-settings:.github/common-settings.yml
8+
_extends: repo-settings:.github/common-settings-v2.yml
99

1010
# repo-specific settings
1111
#

.github/workflows/ci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
name: CI-Pipeline
22

3-
# Controls when the workflow will run
3+
# Controls when the workflow will run, when comment is created
44
on:
5-
# Triggers the workflow on push or pull request events but only for the main branch
6-
push:
7-
branches: [main]
8-
pull_request:
9-
branches: [main]
10-
11-
# Allows you to run this workflow manually from the Actions tab
12-
workflow_dispatch:
5+
issue_comment:
6+
types:
7+
- created
138

149
jobs:
1510
call-terraform-ci-pipeline:
16-
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/common-terraform-module-ci.yml@v1.9.1
11+
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/common-terraform-module-ci-v2.yml@v1.10.0
1712
secrets: inherit
1813
with:
14+
craSCCv2: true
1915
craTarget: "examples/default"
20-
craGoalIgnoreFile: "cra-tf-validate-ignore-goals.json"
16+
craRuleIgnoreFile: "cra-tf-validate-ignore-rules.json"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ on:
1313
jobs:
1414
call-terraform-release-pipeline:
1515
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
16-
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/common-release.yml@v1.9.1
16+
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/common-release.yml@v1.10.0
1717
secrets: inherit

cra-tf-validate-ignore-goals.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

cra-tf-validate-ignore-rules.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"scc_rules": []
3+
}

0 commit comments

Comments
 (0)