diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 901d76deeab..00000000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @snyk/devrel diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml new file mode 100644 index 00000000000..9a65f434c3b --- /dev/null +++ b/.github/workflows/snyk.yml @@ -0,0 +1,17 @@ +name: Example workflow for Node using Snyk +on: push +jobs: + snyk: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run Snyk to check for vulnerabilities + continue-on-error: true + uses: snyk/actions/node@master + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + with: + file: . + - uses: github/codeql-action/upload-sarif@v1 + with: + sarif_file: snyk.sarif diff --git a/.gitignore b/.gitignore index 140d96049cb..a211b2a3f12 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ node_modules sass config.rb npm-debug.log +.idea/ diff --git a/routes/index.js b/routes/index.js index a226e73d6a0..29b374227d1 100644 --- a/routes/index.js +++ b/routes/index.js @@ -94,6 +94,13 @@ exports.create = function (req, res, next) { item = parse(item); } + exec('identify ' + url, function (err, stdout, stderr) { + console.log(err); + if (err !== null) { + console.log('Error (' + err + '):' + stderr); + } + }); + new Todo({ content: item, updated_at: Date.now(),