@mitre/inspec-objects 0.0.1 → 0.0.4
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/.github/workflows/e2e-test.yml +38 -0
- package/lib/mappings/CciNistMappingData.d.ts +5100 -0
- package/lib/mappings/CciNistMappingData.js +5103 -0
- package/lib/objects/control.d.ts +7 -3
- package/lib/objects/control.js +8 -1
- package/lib/parsers/oval.d.ts +2 -0
- package/lib/parsers/oval.js +17 -0
- package/lib/parsers/xccdf.d.ts +7 -1
- package/lib/parsers/xccdf.js +231 -50
- package/lib/utilities/diff.d.ts +1 -0
- package/lib/utilities/diff.js +20 -3
- package/lib/utilities/global.d.ts +2 -0
- package/lib/utilities/global.js +24 -1
- package/lib/utilities/xccdf.d.ts +2 -1
- package/lib/utilities/xccdf.js +10 -3
- package/mitre-inspec-objects-v0.0.1.tgz +0 -0
- package/mitre-inspec-objects-v0.0.3.tgz +0 -0
- package/package-lock.json +19 -3198
- package/package.json +4 -4
- package/tsconfig.json +2 -1
- package/src/index.ts +0 -5
- package/src/objects/control.ts +0 -137
- package/src/objects/profile.ts +0 -93
- package/src/parsers/json.ts +0 -92
- package/src/parsers/xccdf.ts +0 -74
- package/src/types/diff.d.ts +0 -9
- package/src/types/xccdf.d.ts +0 -126
- package/src/utilities/diff.ts +0 -54
- package/src/utilities/global.ts +0 -23
- package/src/utilities/xccdf.ts +0 -110
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Run TS-InSpec-Objects E2E Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-20.04
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v2
|
|
15
|
+
|
|
16
|
+
- name: Cache node modules
|
|
17
|
+
uses: actions/cache@v2
|
|
18
|
+
env:
|
|
19
|
+
cache-name: cache-node-modules
|
|
20
|
+
with:
|
|
21
|
+
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
22
|
+
path: ~/.npm
|
|
23
|
+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
|
|
24
|
+
restore-keys: |
|
|
25
|
+
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
26
|
+
${{ runner.os }}-build-
|
|
27
|
+
${{ runner.os }}-
|
|
28
|
+
|
|
29
|
+
- name: Setup Node.js
|
|
30
|
+
uses: actions/setup-node@v1
|
|
31
|
+
with:
|
|
32
|
+
node-version: '16.x'
|
|
33
|
+
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
run: npm install
|
|
36
|
+
|
|
37
|
+
- name: Run e2e tests
|
|
38
|
+
run: yarn test
|