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

Integrate Snyc for Vulnerability Tests #513

Closed
wants to merge 11 commits into from
Closed
4 changes: 4 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.7.1
ignore: {}
patch: {}
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ Lastly, if you run into any problems with the following instructions, please try

1. Click on the 'Fork' button on the top right corner of the page. You'll have your own copy of the repository available on your Github account.
2. Go to the forked repository page on your Github account.
3. Click on the green 'Clone or download' button and copy the link.
Your link will look like `https://github.com/<your_username>/operationcode_frontend.git`.
3. Click on the green 'Clone or download' button and copy the link.
Your link will look like `https://github.com/<your_username>/operationcode_frontend.git`.
(Use the HTTPS link. Click [here](https://help.github.com/articles/which-remote-url-should-i-use/) for more info).
4. Open a terminal on your system and move to the directory where the repository should be.
5. Run `git clone <paste the link here>`. You'll now have a local copy of the repository.
6. `cd` to the repository.
7. Run `git remote add upstream https://github.com/OperationCode/operationcode_frontend.git`.
**Note:** You may replace 'upstream' with any nickname you'd like to give to the original repository.
7. Run `git remote add upstream https://github.com/OperationCode/operationcode_frontend.git`.
**Note:** You may replace 'upstream' with any nickname you'd like to give to the original repository.
Run `git remote -v` to check if both the repositories are listed.
8. Now you may make changes, add and commit to the repository.

Expand All @@ -66,7 +66,7 @@ Run `git remote -v` to check if both the repositories are listed.
6. Run `yarn install`

#### Addressing An Issue
Everytime you want to resolve an issue, you'll need to create a branch, code there, and then submit a pull request (PR) for review. Assuming you're already in the /operationcode_frontend directory...
Every time you want to resolve an issue, you'll need to create a branch, code there, and then submit a pull request (PR) for review. Assuming you're already in the /operationcode_frontend directory...
1. Run `git checkout -b "Name-of-branch-relevant-to-issue"`
2. Run `yarn start` and now your development environment will load. Happy coding!

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# OperationCode Frontend

[![Known Vulnerabilities](https://snyk.io/test/github/operationcode/operationcode_frontend/badge.svg?targetFile=package.json)](https://snyk.io/test/github/operationcode/operationcode_frontend?targetFile=package.json)

![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=<badge_key>)

-------

This is the repository for the front-end portion of https://operationcode.org.

## Hacktoberfest
Expand Down
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"axios": "^0.16.1",
"axios": "0.16.1",
"classnames": "^2.2.5",
"dateformat": "^2.0.0",
"express": "^4.15.2",
"express": "4.16.0",
"font-awesome": "^4.7.0",
"history": "^4.6.1",
"jwt-decode": "^2.2.0",
Expand All @@ -17,7 +17,7 @@
"rc-progress": "^2.2.2",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-error-overlay": "^1.0.7",
"react-error-overlay": "1.0.7",
"react-ga": "^2.2.0",
"react-icons": "^2.2.5",
"react-modal": "^1.7.7",
Expand All @@ -28,6 +28,7 @@
"react-select": "^1.0.0-rc.5",
"react-table": "^6.0.5",
"sinon": "^2.3.2",
"snyk": "1.41.1",
"universal-cookie": "^2.0.7"
},
"devDependencies": {
Expand Down Expand Up @@ -76,11 +77,13 @@
"start": "node scripts/start.js",
"start:server": "node server",
"build": "node scripts/build.js",
"test": "node scripts/test.js --env=jsdom",
"test": "snyk test && node scripts/test.js --env=jsdom",
"lint": "eslint src",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"backend": "./bin/run_backend.sh"
"backend": "./bin/run_backend.sh",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect"
},
"jest": {
"moduleDirectories": [
Expand Down
Loading