Skip to content

Commit

Permalink
🐛 FIX: Security fix for yargs (#48)
Browse files Browse the repository at this point in the history
closes #46
  • Loading branch information
fengmk2 authored Feb 9, 2022
1 parent de33d4d commit 7864b22
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 46 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
schedule:
- cron: '0 2 * * *'

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: [8, 10, 12, 14, 16]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- name: Checkout Git Source
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm i -g npminstall && npminstall

- name: Continuous Integration
run: npm run ci

- name: Code Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# common-bin

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/common-bin.svg?style=flat-square
[npm-url]: https://npmjs.org/package/common-bin
[travis-image]: https://img.shields.io/travis/node-modules/common-bin.svg?style=flat-square
[travis-url]: https://travis-ci.org/node-modules/common-bin
[codecov-image]: https://codecov.io/gh/node-modules/common-bin/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/node-modules/common-bin
[david-image]: https://img.shields.io/david/node-modules/common-bin.svg?style=flat-square
[david-url]: https://david-dm.org/node-modules/common-bin
[snyk-image]: https://snyk.io/test/npm/common-bin/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/common-bin
[download-image]: https://img.shields.io/npm/dm/common-bin.svg?style=flat-square
Expand Down Expand Up @@ -423,3 +417,7 @@ class TestCommand extends Command {
## License

[MIT](LICENSE)

## Contributors

[![](https://ergatejs.implements.io/badges/contributors/node-modules/common-bin.svg?width=1250&size=96&padding=6)](https://github.com/node-modules/common-bin/graphs/contributors)
17 changes: 0 additions & 17 deletions appveyor.yml

This file was deleted.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,26 @@
"debug": "^4.1.0",
"is-type-of": "^1.2.1",
"semver": "^5.5.1",
"yargs": "^12.0.2",
"yargs-parser": "^11.0.0"
"yargs": "^13.3.0",
"yargs-parser": "^13.1.2"
},
"devDependencies": {
"autod": "^3.0.1",
"coffee": "^5.1.0",
"egg-bin": "^4.9.0",
"egg-ci": "^1.5.0",
"egg-bin": "^4.17.0",
"egg-ci": "^1.19.0",
"eslint": "^5.6.1",
"eslint-config-egg": "^7.1.0",
"mm": "^2.4.1",
"rimraf": "^2.6.2",
"typescript": "^3.2.2",
"webstorm-disable-index": "^1.1.2"
"typescript": "^3.2.2"
},
"repository": {
"type": "git",
"url": "https://github.com/node-modules/common-bin.git"
},
"homepage": "https://github.com/node-modules/common-bin",
"author": "fengmk2 <[email protected]> (https://fengmk2.com)",
"author": "fengmk2 <[email protected]> (https://github.com/fengmk2)",
"scripts": {
"autod": "autod",
"clean": "rimraf coverage",
Expand All @@ -54,7 +53,8 @@
],
"types": "index.d.ts",
"ci": {
"version": "6, 8, 10, 12",
"version": "8, 10, 12, 14, 16",
"type": "github",
"license": {
"year": "2017",
"fullname": "node-modules and other contributors"
Expand Down

0 comments on commit 7864b22

Please sign in to comment.