Skip to content

Commit

Permalink
fix: Security vulnerabilities (#16)
Browse files Browse the repository at this point in the history
* feat: added support of github action v2

* fix: security vulnerabilites and depedencies

* fix: updated husky config

* fix: updated git action

Co-authored-by: harsh vardhan thakur <harshvardhanthakur@harshs-MacBook-Pro.local>
  • Loading branch information
harsh-Xavient and harsh vardhan thakur authored Jul 1, 2021
1 parent b346ff3 commit 74e2b5c
Show file tree
Hide file tree
Showing 7 changed files with 2,365 additions and 2,921 deletions.
6 changes: 6 additions & 0 deletions .audit-ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"moderate": true,
"advisories": [],
"whitelist": [],
"registry": "https://registry.npmjs.org"
}
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x]

steps:
- name: Check out the code
uses: actions/checkout@v1
uses: actions/checkout@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

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

- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 14

Expand Down
6 changes: 6 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-commit": "npm run lint"
}
}
5 changes: 5 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {extends: ['@commitlint/config-angular'],
rules: {
'type-enum': [2, 'always', ['build', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'chore']]
}
}
Loading

0 comments on commit 74e2b5c

Please sign in to comment.