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

Test new feature from fork #20

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
## Marketplace

https://github.com/marketplace/actions/depsafe


test test
# DepSafe

Adopting third-party dependencies has the potential risk for injecting malicious code into your application. To protect your project, we created a very simple bot called **DepSafe**. DepSafe automatically detects any unsafe updates. One potential unsafe function is require(). The require() function is used to import external modules, which can be a subtle way to introduce risky code.
Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
const core = require('@actions/core');
const github = require('@actions/github');
const github = require('@actions/github2');

function parsePatch(patch) {
const added = [];
const removed = [];
const a= [];

const lines = patch.split('\n');
for (const line of lines) {
if (line.startsWith('+')) {
added.push(line.substring(1));
} else if (line.startsWith('-')) {
removed.push(line.substring(1));
console.log()
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 12"
},
"keywords": [],
"author": "",
Expand All @@ -14,4 +14,4 @@
"@actions/github": "^5.1.1",
"@vercel/ncc": "^0.36.1"
}
}
}