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

Installing SNYK mutation tool for Static Analysis #47

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b58aff9
Update README.md to include our names
T7alabdullah Sep 10, 2024
b03f604
Merged my Proj1 Edits -nalseaf
Nalseaf Sep 18, 2024
beddc39
Merge pull request #14 from CMU-17313Q/merge_proj1
Nalseaf Sep 18, 2024
b4153e2
Merged Project 1 changes mthani2
mthani2 Sep 19, 2024
314e8d9
Merge pull request #15 from CMU-17313Q/Feature-merge-project1-mthani2
mthani2 Sep 20, 2024
5a1bd8e
merged project 1 to project 2
Sep 22, 2024
d1ba402
Attempting to add anonymous posting checkbox to composer.tpl - frontend
mthani2 Sep 22, 2024
8031ead
Merged project 1 changes thali
T7alabdullah Sep 22, 2024
e1c5179
Merged Project 1 changes fdounis
fdounis Sep 22, 2024
187c78a
Merge pull request #18 from CMU-17313Q/Feature-merge-project1-fdounis
fdounis Sep 22, 2024
2662a81
Merge pull request #19 from CMU-17313Q/feature-merge-project1-thali
fdounis Sep 22, 2024
3905401
Add 'Post anonymously' checkbox to composer.tpl for anonymous message…
mthani2 Sep 23, 2024
1d644a6
undoing changes made to src/views.partials/chats/composer.tpl
mthani2 Sep 23, 2024
4e6054c
commenting out package in gitignore. file
mthani2 Sep 23, 2024
c5cada4
removed composer default file from package.json
mthani2 Sep 23, 2024
72dd073
created exception for nodebb-plugin-composer in .gitignore
mthani2 Sep 24, 2024
d41a0cd
reintsalled the composer-default file
Nalseaf Sep 24, 2024
53b80c2
Added an Anonymous toggle to the submit button
Nalseaf Sep 24, 2024
8b82c6f
Merge pull request #16 from CMU-17313Q/sarra
mthani2 Sep 24, 2024
94c2883
final design changes to composer-titiel-container.tpl
mthani2 Sep 24, 2024
6d7f6f5
Merge pull request #21 from CMU-17313Q/anonymous-posting-frontend
Nalseaf Sep 25, 2024
ade6269
Composer-title-container final changes
mthani2 Sep 30, 2024
d30e5fa
Added click to composer.js
mthani2 Sep 30, 2024
028cdb5
flag added for isAnon in composer.js
mthani2 Sep 30, 2024
336af92
modified create.js to show user as anonymous
mthani2 Sep 30, 2024
082dd96
final changes made to create.js
mthani2 Sep 30, 2024
cbbd2e0
fixing ESlint error with indentation
mthani2 Sep 30, 2024
36d6d87
Fix: Clean up trailing spaces and tabs
mthani2 Sep 30, 2024
03ecf21
Fix: Clean up trailing spaces, resoling all lint
mthani2 Oct 1, 2024
5bdb3dd
Fix: config.json exception created in gitignore
mthani2 Oct 1, 2024
5116276
Fix: create.js to address ESS_ASSERTION
mthani2 Oct 1, 2024
4813856
Fix: newlin expectation in create.js file
mthani2 Oct 1, 2024
28026ec
Merge pull request #26 from CMU-17313Q/anonymous-post-full-feature
sarrakhelifi-cmu Oct 2, 2024
0c08dcb
Add basic reaction buttons (👍, ❤️, 😂) to the topic template
fdounis Oct 7, 2024
2c6b4d7
Add the javascript functionality to make the buttons clickable (alrea…
fdounis Oct 7, 2024
af2af4d
Create API Route for Handling Reactions - src/routes/reactions.js
fdounis Oct 7, 2024
014aa67
Create API Route to fetch reaction counts - added a get route to retr…
fdounis Oct 7, 2024
b9c91ef
Added a function to fetch and display initial reaction counts when th…
fdounis Oct 7, 2024
69c430b
Updated the Javascript code, to try and properly send AJAX requests
fdounis Oct 7, 2024
a88a0e4
Imported my custom route to index.js
fdounis Oct 7, 2024
450fb65
Fixed the javascript so that the ajax request is sent to /api/post/3/…
fdounis Oct 7, 2024
dd7516b
Updated the reactions.js route to ensure it is using the api suffix
fdounis Oct 7, 2024
b0926a2
Created the nodebb-plugin-emoji-reactions directory and added a plugi…
fdounis Oct 10, 2024
a8e0a7f
Added the library.json file within the nodebb-plugin-emoji-reactions …
fdounis Oct 10, 2024
5e377cc
Create a package.json file to define the package
fdounis Oct 10, 2024
46571f4
Restructured the topic.tpl file to work with the new back-end logic a…
fdounis Oct 10, 2024
ae78637
Troubleshooting the issue with library.js
fdounis Oct 10, 2024
3ba2a04
Created the test/back-end directory within the emoji reactions plugin…
fdounis Oct 20, 2024
941ddba
Created the initial back-end test file reactions.test.js within the t…
fdounis Oct 20, 2024
a726bb4
Implemented a test case to verify that a valid reaction (👍) can be su…
fdounis Oct 20, 2024
f632384
Added a test case to ensure that the API correctly handles invalid re…
fdounis Oct 20, 2024
36a207e
Implemented a test to verify that unauthenticated users cannot add re…
fdounis Oct 20, 2024
5204809
Add a test case to ensure that the API gracefully handles server-side…
fdounis Oct 20, 2024
709bc43
Add OWASP ZAP security scan workflow
fdounis Oct 27, 2024
254202e
Add Snyk vulnerability scan workflow
fdounis Oct 27, 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
Empty file added .Rhistory
Empty file.
32 changes: 32 additions & 0 deletions .github/workflows/snyk-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Snyk Vulnerability Scan

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
snyk:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install dependencies
run: npm install

- name: Run Snyk Scan
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
npx snyk auth $SNYK_TOKEN
npx snyk test --all-projects
34 changes: 34 additions & 0 deletions .github/workflows/zap-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: OWASP ZAP Security Scan

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
zap:
runs-on: ubuntu-latest

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

- name: Start NodeBB Application
run: |
# Commands to start your deployed NodeBB application
npm install
npm start & # Starts NodeBB in the background

- name: Run OWASP ZAP Scan
uses: zaproxy/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
target: 'https://nodebb-pawsitive-p3.azurewebsites.net'

- name: Stop NodeBB Application
run: |
# Stop NodeBB if necessary
npm stop
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
dist/
yarn.lock
npm-debug.log
node_modules/
node_modules/*
!node_modules/nodebb-plugin-composer-default
sftp-config.json
config.json
jsconfig.json
Expand Down Expand Up @@ -66,7 +67,7 @@ coverage
test/files/normalise.jpg.png
test/files/normalise-resized.jpg
package-lock.json
/package.json
#/package.json
*.mongodb
link-plugins.sh
test.sh
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## Team members: Talal, Filippos, Moza, Sara, Nour
# ![NodeBB](public/images/sm-card.png)

[![Workflow](https://github.com/CMU-313/NodeBB/actions/workflows/test.yaml/badge.svg)](https://github.com/CMU-313/NodeBB/actions/workflows/test.yaml)
Expand Down
18 changes: 18 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"url": "http://localhost:4567",
"secret": "1fbf3fbd-fc64-4821-8eb2-a9349aecdc46",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "0"
},
"port": "4567",
"test_database": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "1"
}
}
Binary file added dump.rdb
Binary file not shown.
3 changes: 3 additions & 0 deletions node_modules/nodebb-plugin-composer-default/.eslintrc

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

22 changes: 22 additions & 0 deletions node_modules/nodebb-plugin-composer-default/.gitattributes

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

86 changes: 86 additions & 0 deletions node_modules/nodebb-plugin-composer-default/.jshintrc

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

7 changes: 7 additions & 0 deletions node_modules/nodebb-plugin-composer-default/LICENSE

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

11 changes: 11 additions & 0 deletions node_modules/nodebb-plugin-composer-default/README.md

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

11 changes: 11 additions & 0 deletions node_modules/nodebb-plugin-composer-default/controllers.js

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

Loading