Skip to content

Commit 17f860a

Browse files
committed
test: utilise Secvisogram for validation
Signed-off-by: Rifa Achrinza <[email protected]>
1 parent cd820cf commit 17f860a

File tree

6 files changed

+18372
-3596
lines changed

6 files changed

+18372
-3596
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313
with:
14-
submodules: true
14+
submodules: recursive
1515
- uses: actions/setup-node@v2
1616
with:
1717
node-version: 16
18-
- name: Install tools
19-
run: npm ci --ignore-scripts
18+
- name: Install dependencies
19+
run: |
20+
npm ci --ignore-scripts
21+
npm run-script --ignore-scripts install
22+
- name: Build project
23+
run: npm run --ignore-scripts build
2024
- name: Run code lint
2125
run: |
2226
npm run-script --ignore-scripts prettier:check
@@ -35,4 +39,4 @@ jobs:
3539
- name: Install tools
3640
run: npm ci --ignore-scripts
3741
- name: Run commit lint
38-
run: npx commitlint --from=origin/main --to=HEAD --verbose
42+
run: npx --no-install commitlint --from=origin/main --to=HEAD --verbose

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ about the LoopBack project. It includes the following:
99
- PGP Keys ([`keys/`](keys/README.md))
1010
- Scripts ([`scripts/`](scripts/README.md))
1111
- Vendors ([`vendors/`](vendors/README.md))
12+
13+
## Cloning This Repository
14+
15+
To clone this Git repository:
16+
17+
```
18+
git clone [email protected]:loopbackio/security.git
19+
git submodule update --recursive
20+
```

advisories/README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
> advisories.
66
77
This section of the Git repository is where all LBSAs are stored. They are
8-
written as
9-
[CSAF 2.0](https://docs.oasis-open.org/csaf/csaf/v2.0/csaf-v2.0.html) documents.
8+
written as [CSAF 2.0](https://docs.oasis-open.org/csaf/csaf/v2.0/csaf-v2.0.html)
9+
documents.
1010

1111
The naming convention is as follows:
1212

@@ -23,25 +23,26 @@ Where:
2323
## Scripts
2424

2525
Validation of the CSAF 2.0 documents are done by
26-
<../scripts/advisories/validate-csaf20.ts>. This is triggered automatically during
27-
a Git commit, and as part of the [CI pipeline](../.github/workflows/ci.yaml). It
28-
can also be triggered by running `npm run validate-csaf20`.
26+
<../scripts/advisories/validate-csaf20.ts>. This is triggered automatically
27+
during a Git commit, and as part of the
28+
[CI pipeline](../.github/workflows/ci.yaml). It can also be triggered by running
29+
`npm run validate-csaf20`.
2930

3031
## Vendors
3132

32-
This section depends on [Secvisogram](../vendors/README.md#submodules) for its
33-
ports of JSON Schemas from Draft-04 (No first-class AJV support) to Draft-2019,
34-
and for a strict variant of CSAF 2.0 JSON Schema. There are plans to utilise the
35-
other parts of the codebase for more thorough validation.
33+
This section depends on [Secvisogram](../vendors/README.md#submodules) for
34+
validation, its ports of JSON Schemas from Draft-04 (No first-class AJV support)
35+
to Draft-2019, and for a strict variant of CSAF 2.0 JSON Schema. There are plans
36+
to utilise the other parts of the codebase for more thorough validation.
3637

3738
## Dependents
3839

3940
There's current no known dependents on these CSAF 2.0 documents. However, there
4041
are future plans to add integration:
4142

42-
| Integration | Status
43-
|-|-
44-
| Generation of security advisories on [loopback.io website](https://loopback.io/doc/en/sec/index.html) | Planned
45-
| Publishing as a CSAF Provider through csaf.data.loopback.io | Planned
46-
| Down-conversion and publication of CVRF 1.2 | Planned
47-
| Sync with Gitlab Advisory Database | Planned
43+
| Integration | Status |
44+
| ----------------------------------------------------------------------------------------------------- | ------- |
45+
| Generation of security advisories on [loopback.io website](https://loopback.io/doc/en/sec/index.html) | Planned |
46+
| Publishing as a CSAF Provider through csaf.data.loopback.io | Planned |
47+
| Down-conversion and publication of CVRF 1.2 | Planned |
48+
| Sync with Gitlab Advisory Database | Planned |

0 commit comments

Comments
 (0)