Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
baa95d1
update package
tienbku May 26, 2022
e2f4d4e
implementing synk pipeline
Abhi-Moreyeahs Mar 15, 2023
8bcf201
adding yaml file
Abhi-Moreyeahs Mar 15, 2023
eb02e75
installation of node step added
Abhi-Moreyeahs Mar 16, 2023
d3f4c5a
fix: upgrade express from 4.18.1 to 4.18.2
snyk-bot Mar 16, 2023
d42ecd5
Merge pull request #1 from Abhi-Moreyeahs/snyk-upgrade-83873506c15b1a…
Abhi-Moreyeahs Mar 16, 2023
48f740c
changes for secrets
Abhi-Moreyeahs Mar 16, 2023
0da53df
changes for secrets
Abhi-Moreyeahs Mar 16, 2023
f4a843e
changes for secrets
Abhi-Moreyeahs Mar 16, 2023
ce8076f
final commit
Abhi-Moreyeahs Mar 16, 2023
b7b9673
not final commit
Abhi-Moreyeahs Mar 16, 2023
74902d7
one
Abhi-Moreyeahs Mar 16, 2023
35b49e4
new change
Abhi-Moreyeahs Mar 16, 2023
0e6a9e4
few changes done
Abhi-Moreyeahs Mar 16, 2023
e5baf0e
hard cotted api token
Abhi-Moreyeahs Mar 16, 2023
6740f9d
few changes done
Abhi-Moreyeahs Mar 16, 2023
7100942
few changes done
Abhi-Moreyeahs Mar 16, 2023
fd665a5
few changes done
Abhi-Moreyeahs Mar 16, 2023
9bf41c3
hard cotted api token
Abhi-Moreyeahs Mar 16, 2023
0d53b30
The Final Commit
Abhi-Moreyeahs Mar 17, 2023
75ea3ea
The Final Commit
Abhi-Moreyeahs Mar 17, 2023
3d7788c
The Final Commit
Abhi-Moreyeahs Mar 17, 2023
af3a7d4
demo
Abhi-Moreyeahs Mar 17, 2023
6b44f77
Demo Testing
Abhi-Moreyeahs Mar 17, 2023
f1933b8
demo scan synk
Abhi-Moreyeahs Mar 23, 2023
1b6d1ad
demo for sonarscanner
Abhi-Moreyeahs Mar 23, 2023
a3f292d
deleted package.json file
Abhi-Moreyeahs Mar 23, 2023
846087b
disable automatic CI analysis
Abhi-Moreyeahs Mar 23, 2023
c20c81d
added package.json filr again
Abhi-Moreyeahs Mar 23, 2023
f84545a
Test
Abhi-Moreyeahs Mar 24, 2023
015daf7
Test snyk Scanner
Abhi-Moreyeahs Mar 24, 2023
b3900fe
Update snyk.yaml
Abhi-Moreyeahs Apr 20, 2023
34df7f8
Update snyk.yaml
Abhi-Moreyeahs Apr 20, 2023
309c209
Update snyk.yaml
Abhi-Moreyeahs Apr 20, 2023
9d7b3e2
Update snyk.yaml
Abhi-Moreyeahs Apr 20, 2023
be21104
Update snyk.yaml
Abhi-Moreyeahs Apr 20, 2023
c168f25
Update snyk.yaml
Abhi-Moreyeahs Apr 20, 2023
d3c3637
Update snyk.yaml
drashinkar Apr 20, 2023
24e157e
Update snyk.yaml
drashinkar Apr 20, 2023
31b0abc
Update snyk.yaml
drashinkar Apr 20, 2023
309e302
Update snyk.yaml
drashinkar Apr 20, 2023
6fcdbf7
Update snyk.yaml
drashinkar Apr 20, 2023
feee899
Update snyk.yaml
Abhi-Moreyeahs Apr 20, 2023
bb6aee6
Update snyk.yaml
drashinkar Apr 20, 2023
602c1aa
Update snyk.yaml
Abhi-Moreyeahs May 31, 2023
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
32 changes: 32 additions & 0 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Sonar Scan
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarcloud:
name: SonarCloud Scan and Quality Gate
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: SonarCloud Scaning Process
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

#- name: approval
# uses: trstringer/manual-approval@v1
# with:
# secret: ${{ secrets.GT_TOKEN }}
# approvers: Abhi-Moreyeahs




8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For instruction, please visit:
Front-end that works well with this Back-end
> [Axios Client](https://www.bezkoder.com/axios-request/)

> [Angular 8 Client](https://www.bezkoder.com/angular-crud-app/) / [Angular 10 Client](https://www.bezkoder.com/angular-10-crud-app/) / [Angular 11 Client](https://www.bezkoder.com/angular-11-crud-app/) / [Angular 12 Client](https://www.bezkoder.com/angular-12-crud-app/) / [Angular 13 Client](https://www.bezkoder.com/angular-13-crud-example/)
> [Angular 8 Client](https://www.bezkoder.com/angular-crud-app/) / [Angular 10 Client](https://www.bezkoder.com/angular-10-crud-app/) / [Angular 11 Client](https://www.bezkoder.com/angular-11-crud-app/) / [Angular 12 Client](https://www.bezkoder.com/angular-12-crud-app/) / [Angular 13 Client](https://www.bezkoder.com/angular-13-crud-example/) / [Angular 14 Client](https://www.bezkoder.com/angular-14-crud-example/) / [Angular 15 Client](https://www.bezkoder.com/angular-15-crud-example/)

> [Vue 2 Client](https://www.bezkoder.com/vue-js-crud-app/) / [Vue 3 Client](https://www.bezkoder.com/vue-3-crud/) / [Vuetify Client](https://www.bezkoder.com/vuetify-data-table-example/)

Expand Down Expand Up @@ -48,6 +48,12 @@ Fullstack:

> [Angular 12 + Node.js Express + MySQL example](https://www.bezkoder.com/angular-12-node-js-express-mysql/)

> [Angular 13 + Node.js Express + MySQL example](https://www.bezkoder.com/angular-13-node-js-express-mysql/)

> [Angular 14 + Node.js + Express + MySQL example](https://www.bezkoder.com/angular-14-node-js-express-mysql/)

> [Angular 15 + Node.js + Express + MySQL example](https://www.bezkoder.com/angular-15-node-js-express-mysql/)

> [React + Node.js + Express + MySQL example](https://www.bezkoder.com/react-node-express-mysql/)

> [React + Redux + Node.js Express + MySQL](https://www.bezkoder.com/react-redux-mysql-crud/)
Expand Down
41 changes: 21 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{
"name": "nodejs-express-mysql",
"version": "1.0.0",
"description": "Node.js Restful CRUD API with Node.js, Express and MySQL",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"nodejs",
"express",
"mysql",
"restapi"
],
"author": "bezkoder",
"license": "ISC",
"dependencies": {
"cors": "^2.8.5",
"express": "^4.17.1",
"mysql": "^2.17.1"
"name": "nodejs-express-mysql",
"version": "1.0.0",
"description": "Node.js Restful CRUD API with Node.js, Express and MySQL",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"nodejs",
"express",
"mysql",
"restapi"
],
"author": "bezkoder",
"license": "ISC",
"dependencies": {
"cors": "2.8.5",
"express": "4.18.2",
"mysql": "2.18.1"
}
}
}
18 changes: 18 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# required metdata
sonar.projectKey=Abhi-Moreyeahs_nodejs-express-mysql
sonar.organization=abhi-moreyeahs
sonar.projectVersion=1.0
sonar.sourceEncoding=UTF-8
# sonar.language=js
sonar.eslint.eslintconfigpath=app/eslintrc.json

# path to srouce directories
sonar.sources=app
# sonar.tests=app/test/integration/api/

# excludes
sonar.exclusions=app/node_modules/*,app/coverage/lcov-report/*,app/test/integration/api/v1/*,app/middlewares/common-middleware.js

# coverage reporting
sonar.javascript.lcov.reportPaths=app/coverage/lcov.info
# sonar.surefire.reportPaths=app/coverage/lcov-report