Skip to content

Commit aeead43

Browse files
committed
template
1 parent 005f246 commit aeead43

File tree

17 files changed

+1231
-0
lines changed

17 files changed

+1231
-0
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Primary owner should be listed first in list of global owners, followed by any secondary owners
2+
* @ocofaigh @daniel-butler-irl

.github/settings.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# The settings are inherited from common repository repo-settings (same file name and location)
2+
# You can append settings that are deeply merged with the inherited settings.
3+
#
4+
# When you have installed the GitHub App "repo-settings" in this repository,
5+
# any change of this settings.yml file is detected by the GitHub App and
6+
# the settings of this repository are updated immediately.
7+
#
8+
_extends: repo-settings:.github/common-pipeline-settings.yml
9+
10+
# repo-specific settings
11+
#
12+
repository:
13+
# See https://terraform-ibm-modules.github.io/documentation/#/implementation-guidelines?id=module-names-and-descriptions
14+
15+
# By changing this field, you rename the repository.
16+
17+
# Uncomment this name property and set the name to the current repo name.
18+
name: "common-bash-library"
19+
20+
# The description is displayed under the repository name on the
21+
# organization page and in the 'About' section of the repository.
22+
23+
# Uncomment this description property
24+
# and update the description to the current repo description.
25+
description: "A library of bash functions for common tasks."
26+
27+
# Use a comma-separated list of topics to set on the repo (ensure not to use any caps in the topic string).
28+
topics: bash, shell, common, library, ibm-cloud

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI-Pipeline
2+
3+
# Controls when the workflow will run
4+
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:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
CI_Pipeline:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
shell: bash
22+
container:
23+
image: icr.io/goldeneye_images/goldeneye-ci-image:stable
24+
env:
25+
TF_VAR_ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }}
26+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
27+
MAKE_API_CALLS: true
28+
29+
# Steps represent a sequence of tasks that will be executed as part of the job
30+
steps:
31+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32+
- uses: actions/checkout@v5
33+
with:
34+
token: ${{ secrets.GH_TOKEN }}
35+
submodules: true
36+
37+
# Workaround for https://github.com/actions/runner/issues/2033
38+
- name: Set ownership
39+
run: |
40+
chown -R $(id -u):$(id -g) $PWD
41+
42+
# Install dependencies
43+
- name: Install dependencies
44+
run: |
45+
make dependency-install-darwin-linux
46+
47+
# run pre-commit against all files
48+
- name: Pre-commit
49+
run: |
50+
make pre-commit
51+
52+
# run unit tests
53+
- name: Unit tests
54+
run: |
55+
tests/run-tests.sh

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Release-Pipeline
2+
3+
# Trigger on push(merge) to main branch
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
call-terraform-release-pipeline:
11+
uses: terraform-ibm-modules/common-pipeline-assets/.github/workflows/common-release.yml@v1.24.0
12+
secrets: inherit

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ignore Mac files
2+
.DS_Store
3+
4+
# Ignore IDE files
5+
.idea/
6+
.vscode/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "common-dev-assets"]
2+
path = common-dev-assets
3+
url = https://github.com/terraform-ibm-modules/common-dev-assets

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
common-dev-assets/module-assets/.pre-commit-config.yaml

.releaserc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"tagFormat": "v${version}",
3+
"branches": ["main"],
4+
"plugins": [
5+
"@semantic-release/commit-analyzer",
6+
"@semantic-release/release-notes-generator",
7+
"@semantic-release/github",
8+
["@semantic-release/git", {
9+
"assets": "false"
10+
}],
11+
["@semantic-release/exec", {
12+
"successCmd": "echo \"SEMVER_VERSION=${nextRelease.version}\" >> $GITHUB_ENV"
13+
}]
14+
]
15+
}

.secrets.baseline

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"exclude": {
3+
"files": "^.secrets.baseline$",
4+
"lines": null
5+
},
6+
"generated_at": "2025-11-23T00:03:58Z",
7+
"plugins_used": [
8+
{
9+
"name": "AWSKeyDetector"
10+
},
11+
{
12+
"name": "ArtifactoryDetector"
13+
},
14+
{
15+
"name": "AzureStorageKeyDetector"
16+
},
17+
{
18+
"base64_limit": 4.5,
19+
"name": "Base64HighEntropyString"
20+
},
21+
{
22+
"name": "BasicAuthDetector"
23+
},
24+
{
25+
"name": "BoxDetector"
26+
},
27+
{
28+
"name": "CloudantDetector"
29+
},
30+
{
31+
"ghe_instance": "github.ibm.com",
32+
"name": "GheDetector"
33+
},
34+
{
35+
"name": "GitHubTokenDetector"
36+
},
37+
{
38+
"hex_limit": 3,
39+
"name": "HexHighEntropyString"
40+
},
41+
{
42+
"name": "IbmCloudIamDetector"
43+
},
44+
{
45+
"name": "IbmCosHmacDetector"
46+
},
47+
{
48+
"name": "JwtTokenDetector"
49+
},
50+
{
51+
"keyword_exclude": null,
52+
"name": "KeywordDetector"
53+
},
54+
{
55+
"name": "MailchimpDetector"
56+
},
57+
{
58+
"name": "NpmDetector"
59+
},
60+
{
61+
"name": "PrivateKeyDetector"
62+
},
63+
{
64+
"name": "SlackDetector"
65+
},
66+
{
67+
"name": "SoftlayerDetector"
68+
},
69+
{
70+
"name": "SquareOAuthDetector"
71+
},
72+
{
73+
"name": "StripeDetector"
74+
},
75+
{
76+
"name": "TwilioKeyDetector"
77+
}
78+
],
79+
"results": {
80+
"README.md": [
81+
{
82+
"hashed_secret": "1de54cf4c9c5e2b8b9aef885aebefb5c1be33332",
83+
"is_secret": false,
84+
"is_verified": false,
85+
"line_number": 137,
86+
"type": "Secret Keyword",
87+
"verified_result": null
88+
}
89+
],
90+
"ibmcloud/iam.sh": [
91+
{
92+
"hashed_secret": "d3ac7a4ef1a838b4134f2f6e7f3c0d249d74b674",
93+
"is_secret": false,
94+
"is_verified": false,
95+
"line_number": 18,
96+
"type": "Secret Keyword",
97+
"verified_result": null
98+
},
99+
{
100+
"hashed_secret": "1de54cf4c9c5e2b8b9aef885aebefb5c1be33332",
101+
"is_secret": false,
102+
"is_verified": false,
103+
"line_number": 27,
104+
"type": "Secret Keyword",
105+
"verified_result": null
106+
},
107+
{
108+
"hashed_secret": "21b90966dd3d634542afd1d52898c6f63bd63db2",
109+
"is_secret": false,
110+
"is_verified": false,
111+
"line_number": 113,
112+
"type": "Secret Keyword",
113+
"verified_result": null
114+
}
115+
]
116+
},
117+
"version": "0.13.1+ibm.64.dss",
118+
"word_list": {
119+
"file": null,
120+
"hash": null
121+
}
122+
}

0 commit comments

Comments
 (0)