Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Release V2.1.0 #87

Open
wants to merge 63 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
c6b343d
migration
curlyreeve May 7, 2024
29a883e
updated
curlyreeve May 7, 2024
b3a3fc5
update
curlyreeve May 7, 2024
635a38f
docs: confluence document migration
curlyreeve May 17, 2024
73758b1
docs: confluence document migration
curlyreeve May 17, 2024
b33b455
Merge pull request #10 from frmscoe/Lextego_Migration
Sandy-at-Tazama May 17, 2024
87046ae
chore: add license header
cshezi May 23, 2024
768e112
Bump json5 from 1.0.1 to 1.0.2
dependabot[bot] May 23, 2024
70e5328
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] May 23, 2024
645b051
Bump minimist from 1.2.5 to 1.2.8
dependabot[bot] May 23, 2024
6e569da
Bump minimatch from 3.0.4 to 3.1.2
dependabot[bot] May 23, 2024
c1618ad
Bump semver-regex from 3.1.2 to 3.1.4
dependabot[bot] May 23, 2024
ab5120c
Bump http-cache-semantics from 4.1.0 to 4.1.1
dependabot[bot] May 23, 2024
0e2b042
Bump cookiejar from 2.1.2 to 2.1.4
dependabot[bot] May 23, 2024
7587bf8
Bump qs from 6.5.2 to 6.5.3
dependabot[bot] May 23, 2024
3983753
Merge pull request #9 from frmscoe/dependabot/npm_and_yarn/minimist-1…
scott45 May 26, 2024
0d1ff11
Merge pull request #7 from frmscoe/dependabot/npm_and_yarn/http-cache…
scott45 May 26, 2024
f92fc4e
Merge pull request #6 from frmscoe/dependabot/npm_and_yarn/qs-6.5.3
scott45 May 26, 2024
1cd9ea2
Merge pull request #5 from frmscoe/dependabot/npm_and_yarn/decode-uri…
scott45 May 26, 2024
c418364
Merge pull request #4 from frmscoe/dependabot/npm_and_yarn/minimatch-…
scott45 May 26, 2024
225570e
Merge pull request #3 from frmscoe/dependabot/npm_and_yarn/semver-reg…
scott45 May 26, 2024
0b7d95b
Merge pull request #2 from frmscoe/dependabot/npm_and_yarn/cookiejar-…
scott45 May 26, 2024
ea639d2
Bump axios from 0.21.1 to 0.28.0
dependabot[bot] May 26, 2024
716b55c
Bump word-wrap from 1.2.3 to 1.2.5
dependabot[bot] May 26, 2024
c24a181
Bump @babel/traverse from 7.14.0 to 7.24.6
dependabot[bot] May 26, 2024
c32db02
Merge pull request #17 from frmscoe/dependabot/npm_and_yarn/babel/tra…
scott45 May 27, 2024
8294e96
Merge pull request #13 from frmscoe/dependabot/npm_and_yarn/axios-0.28.0
scott45 May 27, 2024
5bfaef6
Bump ansi-regex from 4.1.0 to 4.1.1
dependabot[bot] May 27, 2024
192941a
Bump semver from 5.7.1 to 5.7.2
dependabot[bot] May 27, 2024
9d1276a
Merge pull request #16 from frmscoe/dependabot/npm_and_yarn/semver-5.7.2
scott45 May 27, 2024
e9da313
Merge pull request #14 from frmscoe/dependabot/npm_and_yarn/word-wrap…
scott45 May 27, 2024
8442f01
Bump log4js from 6.3.0 to 6.4.0
dependabot[bot] May 27, 2024
844258f
Merge pull request #12 from frmscoe/license-header
Justus-at-Tazama May 27, 2024
e791f94
Merge branch 'dev' into dependabot/npm_and_yarn/json5-1.0.2
Justus-at-Tazama May 27, 2024
feb2703
Merge pull request #19 from frmscoe/dependabot/npm_and_yarn/log4js-6.4.0
Justus-at-Tazama May 28, 2024
7a6dbba
Merge pull request #18 from frmscoe/dependabot/npm_and_yarn/ansi-rege…
Justus-at-Tazama May 28, 2024
2dbd9d4
Merge pull request #8 from frmscoe/dependabot/npm_and_yarn/json5-1.0.2
Justus-at-Tazama May 28, 2024
bcc39c5
Bump path-parse from 1.0.6 to 1.0.7 (#22)
dependabot[bot] May 28, 2024
2119994
Bump normalize-url from 4.5.0 to 4.5.1 (#21)
dependabot[bot] May 28, 2024
182c086
Bump tmpl from 1.0.4 to 1.0.5 (#20)
dependabot[bot] May 28, 2024
cc1aab8
Bump ws from 7.4.5 to 7.5.9 (#23)
dependabot[bot] May 28, 2024
47a742c
chore: linting and deps
Lenbkr Jun 7, 2024
110364e
chore: added eslint rule
Lenbkr Jun 10, 2024
beab2a5
chore: update tsconfig and remove junk
Lenbkr Jun 12, 2024
b798754
chore: lint and missing dep
Lenbkr Jun 12, 2024
19bfe2f
Merge pull request #26 from frmscoe/feat/eslint-deps-upgrades
Justus-at-Tazama Jun 14, 2024
40e7ca8
refactor: env.template point to v1 tms
cshezi Jun 19, 2024
d206aa3
Merge pull request #28 from frmscoe/rationalise-endpoints
Justus-at-Tazama Jun 20, 2024
5ba32dc
fix: updated the default values
cshezi Jun 21, 2024
ebece4d
Merge pull request #29 from frmscoe/rationalise-endpoints-v2
cshezi Jun 24, 2024
82e9e19
feat: fix data structure
JeanPierreNell Jun 28, 2024
0154c13
Merge pull request #31 from frmscoe/data-structure-fix
Lenbkr Jul 1, 2024
e5119b4
feat: Add more automation and refine workflows (#32)
scott45 Jul 3, 2024
ca10036
feat: Add workflows
vorsterk Jul 15, 2024
f42d084
Merge pull request #44 from frmscoe/release
vorsterk Jul 15, 2024
73ce12d
fix: Removed tests or dependencies because initial main doesnt have t…
vorsterk Jul 15, 2024
dc24164
Merge pull request #45 from frmscoe/rel
vorsterk Jul 15, 2024
cdd17d7
feat: refine and add new workflows (#46)
scott45 Jul 17, 2024
a8d724a
feat: Enhancement to the release workflow
vorsterk Jul 17, 2024
e6dc52e
Merge pull request #47 from frmscoe/release
vorsterk Jul 17, 2024
d7b860c
fix: remove failing scorecard (#49)
scott45 Jul 18, 2024
0694de2
chore(deps): bump path-to-regexp from 6.2.2 to 6.3.0
dependabot[bot] Sep 25, 2024
c18fb93
Merge pull request #73 from frmscoe/dependabot/npm_and_yarn/path-to-r…
Justus-at-Tazama Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

node_modules
coverage
.vscode
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
root = true

[*]
Expand All @@ -6,6 +7,7 @@ indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = false
14 changes: 8 additions & 6 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# SPDX-License-Identifier: Apache-2.0

FUNCTION_NAME=payment_platfrom_adapter
PORT=3000
TMS_ENDPOINT='http://openfaas:8080/function/off-frm-tms-service.frm/monitor/transaction'
TMS_ENDPOINT='localhost:3000'

TMS_PAIN001_ENDPOINT=https://openfaas:8080/function/off-transaction-monitoring-service-rel-1-0-0/execute
TMS_PAIN013_ENDPOINT=https://openfaas:8080/function/off-transaction-monitoring-service-rel-1-0-0/quoteReply
TMS_PACS002_ENDPOINT=https://openfaas:8080/function/off-transaction-monitoring-service-rel-1-0-0/transfer-response
TMS_PACS008_ENDPOINT=https://openfaas:8080/function/off-transaction-monitoring-service-rel-1-0-0/transfer
TMS_PAIN001_ENDPOINT=localhost:3000/v1/evaluate/iso20022/pain.001.001.11
TMS_PAIN013_ENDPOINT=localhost:3000/v1/evaluate/iso20022/pain.013.001.09
TMS_PACS002_ENDPOINT=localhost:3000/v1/evaluate/iso20022/pacs.008.001.10
TMS_PACS008_ENDPOINT=localhost:3000/v1/evaluate/iso20022/pacs.002.001.12

# kafka
KAFKA_URI=127.0.0.1:9092
Expand All @@ -17,4 +19,4 @@ KAFKA_TOPIC_TO_CONSUME=test-topic
REDIS_URL=127.0.0.1
REDIS_PORT=6379

NODE_ENV=dev
NODE_ENV=dev
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

31 changes: 0 additions & 31 deletions .eslintrc.js

This file was deleted.

12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: Apache-2.0

## What did we change?

## Why are we doing this?

## How was it tested?
- [ ] Locally
- [ ] Development Environment
- [ ] Not needed, changes very basic
- [ ] Husky successfully run
- [ ] Unit tests passing and Documentation done
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Set update schedule for GitHub Actions

version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
63 changes: 63 additions & 0 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# SPDX-License-Identifier: Apache-2.0

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow checks out code, performs a Codacy security scan
# and integrates the results with the
# GitHub Advanced Security code scanning feature. For more information on
# the Codacy security scan action usage and parameters, see
# https://github.com/codacy/codacy-analysis-cli-action.
# For more information on Codacy Analysis CLI in general, see
# https://github.com/codacy/codacy-analysis-cli.

name: Codacy Security Scan

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '17 0 * * 4'

permissions:
contents: read

jobs:
codacy-security-scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout code
uses: actions/checkout@v3

# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true
output: results.sarif
format: sarif
# Adjust severity of non-security issues
gh-code-scanning-compat: true
# Force 0 exit code to allow SARIF file generation
# This will handover control about PR rejection to the GitHub side
max-allowed-issues: 2147483647

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
78 changes: 78 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# SPDX-License-Identifier: Apache-2.0

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '34 0 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


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

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
33 changes: 33 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: Apache-2.0

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This GitHub Actions workflow validates the title of pull requests (PRs) to ensure they follow conventional commit standards.

name: PR Conventional Commit Validation

on:
# Trigger this workflow on specific events related to pull requests
pull_request:
types: [opened, synchronize, reopened, edited]

jobs:
validate-pr-title:
runs-on: ubuntu-latest # Use the latest Ubuntu runner for the job
steps:
- name: Checkout code
uses: actions/checkout@v4 # Checkout the repository code using the actions/checkout action

- name: PR Conventional Commit Validation
uses: ytanikin/[email protected] # Use the PRConventionalCommits action to validate PR titles
with:
# Define the task types that are valid for conventional commits
task_types: '["build","ci","docs","feat","fix","perf","refactor","style","test","feat!"]'
# Map the conventional commit types to corresponding GitHub labels
custom_labels: '{"build": "build", "ci": "CI/CD", "docs": "documentation", "feat": "enhancement", "fix": "bug", "perf": "performance", "refactor": "refactor", "style": "style", "test": "test", "feat!": "enhancement breaking change"}'
# Use a personal access token (GITHUB_TOKEN) stored in GitHub secrets for authentication
token: ${{ secrets.GITHUB_TOKEN }}
add_label: 'true'
49 changes: 49 additions & 0 deletions .github/workflows/dco-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# SPDX-License-Identifier: Apache-2.0

# This GitHub Actions workflow checks that all commits in a pull request (PR) have a "Signed-off-by" line to ensure Developer Certificate of Origin (DCO) compliance.

name: DCO

# Trigger the workflow on pull request events
on: [pull_request]

jobs:
dco:
# Define the runner environment
runs-on: ubuntu-latest

steps:
# Step to check out the repository
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches to ensure complete commit history is available

# Step to check each commit in the pull request for a Signed-off-by line
- name: Check for DCO Sign-off
run: |
# Get the base branch and head branch of the pull request
base_branch=${{ github.event.pull_request.base.ref }}
head_branch=${{ github.event.pull_request.head.ref }}

# Get the list of commit hashes between the head branch and base branch
commits=$(git log --pretty=format:%H origin/${head_branch}..origin/${base_branch})
non_compliant_commits=""

# Loop through each commit and check for the Signed-off-by line
for commit in $commits; do
# Check if the commit message contains the Signed-off-by line
if ! git show --quiet --format=%B $commit | grep -q "^Signed-off-by: "; then
# If not, add the commit hash to the list of non-compliant commits
non_compliant_commits="$non_compliant_commits $commit"
fi
done

# If there are any non-compliant commits, output their hashes and fail the job
if [ -n "$non_compliant_commits" ]; then
echo "The following commits do not have a Signed-off-by line:"
for commit in $non_compliant_commits; do
echo "- $commit"
done
exit 1
fi
shell: bash
22 changes: 22 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-License-Identifier: Apache-2.0

# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
33 changes: 33 additions & 0 deletions .github/workflows/gpg-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: Apache-2.0

# This GitHub Actions workflow checks that all commits in a pull request (PR) have been verified with GPG signatures.

name: GPG Verify

on: [pull_request] # Trigger this workflow on pull request events

jobs:
gpg-verify:
runs-on: ubuntu-latest # Use the latest Ubuntu runner for the job
steps:
- uses: actions/checkout@v4 # Checkout the repository code using the actions/checkout action
with:
fetch-depth: 0 # Fetch all history for all branches to ensure we have the full commit history

- name: Check GPG verification status # Step to check each commit for GPG signature verification
run: |
# Get the list of commits in the pull request
commits=$(git log --pretty=format:%H origin/${{ github.event.pull_request.head.ref }}..origin/${{ github.event.pull_request.base.ref }})

# Check the GPG verification status of each commit
for commit in $commits; do
status=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/commits/$commit/check-runs \
| jq -r '.check_runs[] | select(.name == "GPG verify") | .conclusion')

# If the GPG verification status is not successful, list the commit and exit with a non-zero status
if [[ "$status" != "success" ]]; then
echo "GPG signature verification failed for commit $commit."
exit 1
fi
done
Loading
Loading