Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.

Commit 51f647b

Browse files
committed
adding latest IaC for mpath bo
1 parent 40aa981 commit 51f647b

25 files changed

Lines changed: 1327 additions & 494 deletions
Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
# This workflow integrates Brakeman with GitHub's Code Scanning feature
2-
# Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications
1+
# # This workflow integrates Brakeman with GitHub's Code Scanning feature
2+
# # Brakeman is a static analysis security vulnerability scanner for Ruby on Rails applications
33

4-
name: Brakeman Scan
4+
# name: Brakeman Scan
55

6-
# This section configures the trigger for the workflow. Feel free to customize depending on your convention
7-
on:
8-
push:
9-
branches: [ "master", "main", "release" ]
10-
pull_request:
11-
branches: [ "master", "main", "release" ]
6+
# # This section configures the trigger for the workflow. Feel free to customize depending on your convention
7+
# on:
8+
# push:
9+
# branches: [ "master", "main", "release" ]
10+
# pull_request:
11+
# branches: [ "master", "main", "release" ]
1212

13-
jobs:
14-
brakeman-scan:
15-
name: Brakeman Scan
16-
runs-on: ubuntu-latest
17-
steps:
18-
# Checkout the repository to the GitHub Actions runner
19-
- name: Checkout
20-
uses: actions/checkout@v3
13+
# jobs:
14+
# brakeman-scan:
15+
# name: Brakeman Scan
16+
# runs-on: ubuntu-latest
17+
# steps:
18+
# # Checkout the repository to the GitHub Actions runner
19+
# - name: Checkout
20+
# uses: actions/checkout@v3
2121

22-
# Customize the ruby version depending on your needs
23-
- name: Setup Ruby
24-
uses: ruby/setup-ruby@v1
25-
with:
26-
ruby-version: 3.1.0
22+
# # Customize the ruby version depending on your needs
23+
# - name: Setup Ruby
24+
# uses: ruby/setup-ruby@v1
25+
# with:
26+
# ruby-version: 3.1.0
2727

28-
- name: Setup Brakeman
29-
env:
30-
BRAKEMAN_VERSION: '5.3.1' # SARIF support is provided in Brakeman version 4.10+
31-
run: |
32-
gem install brakeman --version $BRAKEMAN_VERSION
28+
# - name: Setup Brakeman
29+
# env:
30+
# BRAKEMAN_VERSION: '5.3.1' # SARIF support is provided in Brakeman version 4.10+
31+
# run: |
32+
# gem install brakeman --version $BRAKEMAN_VERSION
3333

34-
# Execute Brakeman CLI and generate a SARIF output with the security issues identified during the analysis
35-
- name: Scan
36-
continue-on-error: true
37-
run: |
38-
brakeman -f sarif -o output.sarif.json .
34+
# # Execute Brakeman CLI and generate a SARIF output with the security issues identified during the analysis
35+
# - name: Scan
36+
# continue-on-error: true
37+
# run: |
38+
# brakeman -f sarif -o output.sarif.json .
3939

40-
# Upload the SARIF file generated in the previous step
41-
- name: Upload SARIF
42-
uses: github/codeql-action/upload-sarif@v2
43-
with:
44-
sarif_file: output.sarif.json
40+
# # Upload the SARIF file generated in the previous step
41+
# - name: Upload SARIF
42+
# uses: github/codeql-action/upload-sarif@v2
43+
# with:
44+
# sarif_file: output.sarif.json

.github/workflows/ci-features.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
name: CI Feature Branches
2-
on:
3-
push:
4-
branches-ignore:
5-
- 'main'
6-
- 'release'
7-
- 'integration'
1+
# name: CI Feature Branches
2+
# on:
3+
# push:
4+
# branches-ignore:
5+
# - 'main'
6+
# - 'release'
7+
# - 'integration'
88

9-
jobs:
10-
prep-workflow:
11-
name: Prepping Workflow
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Check Runner Status
15-
run: echo "Runner is ready to go"
9+
# jobs:
10+
# prep-workflow:
11+
# name: Prepping Workflow
12+
# runs-on: ubuntu-latest
13+
# steps:
14+
# - name: Check Runner Status
15+
# run: echo "Runner is ready to go"
1616

17-
docker-compose-build:
18-
name: Docker Compose Build
19-
needs: prep-workflow
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v4
23-
- name: Build Docker Compose
24-
run: |
25-
docker compose build
17+
# docker-compose-build:
18+
# name: Docker Compose Build
19+
# needs: prep-workflow
20+
# runs-on: ubuntu-latest
21+
# steps:
22+
# - uses: actions/checkout@v4
23+
# - name: Build Docker Compose
24+
# run: |
25+
# docker compose build
2626

27-
ready-for-pr:
28-
name: Ready for PR
29-
needs: docker-compose-build
30-
runs-on: ubuntu-latest
31-
steps:
32-
- name: Ready for Integration
33-
run: echo "Ready for Integration, Open PR to merge feature branch to integration branch"
27+
# ready-for-pr:
28+
# name: Ready for PR
29+
# needs: docker-compose-build
30+
# runs-on: ubuntu-latest
31+
# steps:
32+
# - name: Ready for Integration
33+
# run: echo "Ready for Integration, Open PR to merge feature branch to integration branch"

.github/workflows/codeql.yml

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
12-
name: "CodeQL"
1+
# # For most projects, this workflow file will not need changing; you simply need
2+
# # to commit it to your repository.
3+
# #
4+
# # You may wish to alter this file to override the set of languages analyzed,
5+
# # or to provide custom queries or build logic.
6+
# #
7+
# # ******** NOTE ********
8+
# # We have attempted to detect the languages in your repository. Please check
9+
# # the `language` matrix defined below to confirm you have the correct set of
10+
# # supported CodeQL languages.
11+
# #
12+
# name: "CodeQL"
1313

14-
on:
15-
push:
16-
branches: [ "master", "main", "release" ]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ "master", "release" ]
20-
schedule:
21-
- cron: '28 9 * * 4'
14+
# on:
15+
# push:
16+
# branches: [ "master", "main", "release" ]
17+
# pull_request:
18+
# # The branches below must be a subset of the branches above
19+
# branches: [ "master", "release" ]
20+
# schedule:
21+
# - cron: '28 9 * * 4'
2222

23-
jobs:
24-
analyze:
25-
name: Analyze
26-
runs-on: ubuntu-latest
27-
permissions:
28-
actions: read
29-
contents: read
30-
security-events: write
23+
# jobs:
24+
# analyze:
25+
# name: Analyze
26+
# runs-on: ubuntu-latest
27+
# permissions:
28+
# actions: read
29+
# contents: read
30+
# security-events: write
3131

32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
language: [ 'javascript', 'ruby' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
32+
# strategy:
33+
# fail-fast: false
34+
# matrix:
35+
# language: [ 'javascript', 'ruby' ]
36+
# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# # Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

39-
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v2
39+
# steps:
40+
# - name: Checkout repository
41+
# uses: actions/checkout@v2
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# # Initializes the CodeQL tools for scanning.
44+
# - name: Initialize CodeQL
45+
# uses: github/codeql-action/init@v2
46+
# with:
47+
# languages: ${{ matrix.language }}
48+
# # If you wish to specify custom queries, you can do so here or in a config file.
49+
# # By default, queries listed here will override any specified in a config file.
50+
# # Prefix the list here with "+" to use these queries and those in the config file.
51+
# # queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
53+
# # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# # If this step fails, then you should remove it and run the build manually (see below)
55+
# - name: Autobuild
56+
# uses: github/codeql-action/autobuild@v2
5757

58-
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
58+
# # ℹ️ Command-line programs to run using the OS shell.
59+
# # 📚 https://git.io/JvXDl
6060

61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
61+
# # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# # and modify them (or add more) to build your code if your project
63+
# # uses a compiled language
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
# #- run: |
66+
# # make bootstrap
67+
# # make release
6868

69-
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v2
69+
# - name: Perform CodeQL Analysis
70+
# uses: github/codeql-action/analyze@v2

.github/workflows/e2e-tests.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
1-
name: e2e-tests
2-
on: [push]
3-
jobs:
4-
cypress-run:
5-
name: "Cypress run"
6-
runs-on: ubuntu-latest
7-
strategy:
8-
# when one test fails, DO NOT cancel the other
9-
# containers, because this will kill Cypress processes
10-
# leaving the Dashboard hanging ...
11-
# https://github.com/cypress-io/github-action/issues/48
12-
fail-fast: false
13-
matrix:
14-
# run 4 copies of the current job in parallel
15-
containers: [1, 2, 3]
16-
node-version: [14.18.x]
17-
services:
18-
db:
19-
env:
20-
MYSQL_ALLOW_EMPTY_PASSWORD: yes
21-
image: mysql:8.0
22-
ports:
23-
- 3306
1+
# name: e2e-tests
2+
# on: [push]
3+
# jobs:
4+
# cypress-run:
5+
# name: "Cypress run"
6+
# runs-on: ubuntu-latest
7+
# strategy:
8+
# # when one test fails, DO NOT cancel the other
9+
# # containers, because this will kill Cypress processes
10+
# # leaving the Dashboard hanging ...
11+
# # https://github.com/cypress-io/github-action/issues/48
12+
# fail-fast: false
13+
# matrix:
14+
# # run 4 copies of the current job in parallel
15+
# containers: [1, 2, 3]
16+
# node-version: [14.18.x]
17+
# services:
18+
# db:
19+
# env:
20+
# MYSQL_ALLOW_EMPTY_PASSWORD: yes
21+
# image: mysql:8.0
22+
# ports:
23+
# - 3306
2424

2525

26-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v3
26+
# steps:
27+
# - name: Checkout
28+
# uses: actions/checkout@v3
2929

30-
- name: Set up Ruby
31-
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
32-
with:
33-
ruby-version: 3.1.0
34-
bundler-cache: true
30+
# - name: Set up Ruby
31+
# uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
32+
# with:
33+
# ruby-version: 3.1.0
34+
# bundler-cache: true
3535

36-
- name: Use Node.js ${{ matrix.node-version }}
37-
uses: actions/setup-node@v1
38-
with:
39-
node-version: ${{ matrix.node-version }}
36+
# - name: Use Node.js ${{ matrix.node-version }}
37+
# uses: actions/setup-node@v1
38+
# with:
39+
# node-version: ${{ matrix.node-version }}
4040

41-
- name: Start rails server and run e2e test
42-
env:
43-
RAILS_ENV: test
44-
MPATH_DATABASE_USERNAME: root
45-
MPATH_DATABASE_PASSWORD: root
46-
MPATH_DATABASE_HOST: 127.0.0.1
47-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
48-
run: |
49-
sudo service mysql start
50-
gem install bundler
51-
bundle install --jobs 4 --retry 3
52-
bundle exec rails db:create
53-
bundle exec rails db:migrate RAILS_ENV=test
54-
bundle exec rails db:seed RAILS_ENV=test
55-
bundle exec rails assets:precompile RAILS_ENV=test
56-
bundle exec rails server -e test -p 3000 -d
57-
yarn cypress run --record --parallel --project ./spec --group "Parallel machines"
41+
# - name: Start rails server and run e2e test
42+
# env:
43+
# RAILS_ENV: test
44+
# MPATH_DATABASE_USERNAME: root
45+
# MPATH_DATABASE_PASSWORD: root
46+
# MPATH_DATABASE_HOST: 127.0.0.1
47+
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
48+
# run: |
49+
# sudo service mysql start
50+
# gem install bundler
51+
# bundle install --jobs 4 --retry 3
52+
# bundle exec rails db:create
53+
# bundle exec rails db:migrate RAILS_ENV=test
54+
# bundle exec rails db:seed RAILS_ENV=test
55+
# bundle exec rails assets:precompile RAILS_ENV=test
56+
# bundle exec rails server -e test -p 3000 -d
57+
# yarn cypress run --record --parallel --project ./spec --group "Parallel machines"

0 commit comments

Comments
 (0)