Skip to content

Commit 0766f62

Browse files
authored
Also validate generator output with NIST OSCAL CLI (#453)
* Use temurin in java installer Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Run OSCAL check also with NIST CLI Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> --------- Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
1 parent bbc8649 commit 0766f62

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/oscal-check.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,24 @@ jobs:
4040
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e
4141
id: setup-java
4242
with:
43-
distribution: adopt
44-
java-version: 11
43+
distribution: temurin
44+
java-version: 17
4545

4646
- run: |
4747
go build -C .build/go-oscal/ -o ${PWD}/go-oscal
4848
go build -C cmd/ -o ../baseline-compiler
4949
./baseline-compiler oscal -b baseline > oscal-sample.json
5050
./go-oscal validate --input-file oscal-sample.json
5151
52+
- name: Validate Catalog with oscal-club/metaschema CLI
53+
uses: oscal-club/oscal-cli-action@6a8b6368885714e46fa1d4a65a6ce665902e08b7 # v2.1.0
54+
with:
55+
args: catalog validate oscal-sample.json
56+
5257
- name: Validate Catalog with oscal-club/NIST CLI
53-
uses: oscal-club/oscal-cli-action@b5b0c80a1a158797bea4475d13d12c494b56019b # v2.0.2
58+
uses: oscal-club/oscal-cli-action@6a8b6368885714e46fa1d4a65a6ce665902e08b7 # v2.1.0
5459
with:
60+
oscalCliPackageUrl: https://repo1.maven.org/maven2/gov/nist/secauto/oscal/tools/oscal-cli/cli-core/1.0.3/cli-core-1.0.3-oscal-cli.tar.bz2
5561
args: catalog validate oscal-sample.json
5662

5763

0 commit comments

Comments
 (0)