@unite-us/app-create-referral 0.1.63-code-quality-actions-bab8ecd → 0.1.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unite-us/app-create-referral",
|
|
3
|
-
"version": "0.1.63
|
|
3
|
+
"version": "0.1.63",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"author": "Alex Morales",
|
|
6
6
|
"dependencies": {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"start": "react-app-rewired start",
|
|
27
27
|
"build": "react-app-rewired build",
|
|
28
28
|
"test": "react-scripts test",
|
|
29
|
-
"coverage": "react-scripts test --coverage",
|
|
30
29
|
"eject": "react-scripts eject",
|
|
31
30
|
"build:dist": "npx babel src --out-dir dist --copy-files --source-maps --delete-dir-on-start",
|
|
32
31
|
"build:dist:watch": "npx babel src --watch --out-dir dist --copy-files --source-maps --delete-dir-on-start"
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
name: Enforce Code Quality
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ "main"]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ "main*" ]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
code-quality:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
continue-on-error: true
|
|
13
|
-
steps:
|
|
14
|
-
- name: Check out Git repository
|
|
15
|
-
uses: actions/checkout@v3
|
|
16
|
-
with:
|
|
17
|
-
fetch-depth: 0
|
|
18
|
-
- name: Install node
|
|
19
|
-
uses: actions/setup-node@v2
|
|
20
|
-
with:
|
|
21
|
-
node-version: '16.13.2'
|
|
22
|
-
- name: Install dependencies
|
|
23
|
-
run: |
|
|
24
|
-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./.npmrc
|
|
25
|
-
npm i
|
|
26
|
-
- name: Run unit tests with coverage
|
|
27
|
-
run: npm run coverage
|
|
28
|
-
# run security checks
|
|
29
|
-
semgrep:
|
|
30
|
-
runs-on: ubuntu-latest
|
|
31
|
-
continue-on-error: true
|
|
32
|
-
steps:
|
|
33
|
-
- uses: actions/checkout@v1
|
|
34
|
-
- name: Set up Python
|
|
35
|
-
uses: actions/setup-python@v2
|
|
36
|
-
with:
|
|
37
|
-
python-version: '3.7'
|
|
38
|
-
- name: install semgrep
|
|
39
|
-
run: |
|
|
40
|
-
python3 -m pip install semgrep
|
|
41
|
-
- name: semgrep results
|
|
42
|
-
run: |
|
|
43
|
-
semgrep --config=p/secrets --config=p/security-audit --config=p/owasp-top-ten --config=p/nodejsscan --severity ERROR
|