Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7b08f99
r deleting health.yml
Raghart Mar 19, 2026
8e95bdf
r change deploy-pipe to only work on CI
Raghart Mar 19, 2026
e2c7b4d
r added CD-Pipeline to deploy code on push
Raghart Mar 19, 2026
4020f2b
r changed CI name for clarity
Raghart Mar 19, 2026
c17e539
r added security eslint to front to security check
Raghart Mar 19, 2026
4cf40ca
r added MapSliderStyle for security check
Raghart Mar 19, 2026
4784e0e
r deleted old SliderStyle const
Raghart Mar 19, 2026
9f1626b
r added MapVolumeStyle to fix struct sec
Raghart Mar 19, 2026
5781fe0
r replacing VolStyle logic to for sec
Raghart Mar 19, 2026
7a7e833
r deleting old variable
Raghart Mar 19, 2026
238fa25
r added MapSliderStyle and correct names for clarifications
Raghart Mar 20, 2026
fed4d59
r replacing insecure sliderStyle with sec switch case
Raghart Mar 20, 2026
17f11f3
r deleting old variables
Raghart Mar 20, 2026
78b9a18
r added MapSwitchStyles
Raghart Mar 20, 2026
a692abe
r replacing Rswitch logic for more security
Raghart Mar 20, 2026
6d0d3c0
r deleting old switch logic
Raghart Mar 20, 2026
85f9b5b
r fixing leftSwitch logic to make it more secure
Raghart Mar 20, 2026
bd48930
r fixing front bug
Raghart Mar 20, 2026
6e4e778
r replaced for logic with splice for security purposes
Raghart Mar 20, 2026
f1198e7
r added security check for CI front pipeline
Raghart Mar 20, 2026
06db7a8
r adding security check to backend
Raghart Mar 20, 2026
0fe6c79
r fixed back error for more security
Raghart Mar 20, 2026
fd50526
r added security checks ib backend pipeline
Raghart Mar 20, 2026
4261181
s change CI Pipeline name for clarification
Raghart Mar 20, 2026
06b1757
s changed Pipeline workflows names for more clarification
Raghart Mar 20, 2026
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
13 changes: 13 additions & 0 deletions .github/workflows/CD-Pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Continuous Deployment Pipeline

on:
push:
branches: [main]

jobs:
Web_Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trigger Deployment
run: curl https://api.render.com/deploy/srv-${{ secrets.RENDER_SERVICE_ID }}?key=${{ secrets.RENDER_API_KEY }}
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: FullStack Deployment Pipeline
name: Continuous Integration Pipeline

on:
push:
branches:
- main

on:
pull_request:
branches: [main]
types: [opened, synchronize]
Expand All @@ -28,6 +24,9 @@ jobs:
- name: Check style
run: npm run lint

- name: Check Security
run: npx eslint .

Backend-Pipeline:
runs-on: ubuntu-latest
defaults:
Expand All @@ -46,6 +45,9 @@ jobs:
- name: Check style
run: npm run lint

- name: Check security
run: npx eslint .

- name: Run tests
run: npm run test

Expand Down Expand Up @@ -100,12 +102,4 @@ jobs:
with:
name: playwright-report
path: playwright-report/
retention-days: 30

Web_Deploy:
runs-on: ubuntu-latest
needs: [Frontend-Pipeline,Backend-Pipeline,Playwright-E2E-Tests]
steps:
- uses: actions/checkout@v4
- name: Trigger Deployment
run: curl https://api.render.com/deploy/srv-${{ secrets.RENDER_SERVICE_ID }}?key=${{ secrets.RENDER_API_KEY }}
retention-days: 30
20 changes: 0 additions & 20 deletions .github/workflows/hello.yml

This file was deleted.

13 changes: 7 additions & 6 deletions back/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
// @ts-check
import eslint from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import pluginSecurity from 'eslint-plugin-security';

export default tseslint.config(
{
ignores: ['eslint.config.mjs'],
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
eslintPluginPrettierRecommended,
{
languageOptions: {
globals: {
Expand All @@ -23,12 +19,17 @@ export default tseslint.config(
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
security: pluginSecurity,
}
},
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-unsafe-argument': 'warn'
'@typescript-eslint/no-unsafe-argument': 'warn',
...pluginSecurity.configs.recommended.rules,
},
},
{ ignores: ['eslint.config.mjs', "node_modules", "dist", "bonsai", "coverage", "public"], },
);
83 changes: 60 additions & 23 deletions back/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions back/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.2",
"eslint-plugin-security": "^4.0.0",
"globals": "^16.0.0",
"jest": "^29.7.0",
"prettier": "^3.4.2",
Expand Down
4 changes: 2 additions & 2 deletions back/src/types/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const isString = (text: unknown): text is string => {
};

export const isNumber = (value: unknown): value is number => {
if (typeof value === 'string')
return value.trim() !== '' && /^-?\d+(\.\d+)?$/.test(value.trim());
if (typeof value === 'string')
return value.trim() !== '' && !isNaN(Number(value.trim()));
return (
value !== null &&
value !== undefined &&
Expand Down
8 changes: 6 additions & 2 deletions front/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import pluginSecurity from 'eslint-plugin-security';

export default tseslint.config(
{ ignores: ['dist'] },
js.configs.recommended,
...tseslint.configs.recommended,
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
Expand All @@ -16,13 +17,16 @@ export default tseslint.config(
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
'security': pluginSecurity
},
rules: {
...reactHooks.configs.recommended.rules,
...pluginSecurity.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
{ ignores: ["node_modules", "build", 'dist'] },
)
Loading
Loading