@@ -42,32 +42,45 @@ jobs:
42
42
git config --global user.name "apicurio-ci"
43
43
git config --global user.email "apicurio.ci@gmail.com"
44
44
git clone --branch main --single-branch https://apicurio-ci:${{ secrets.ACCESS_TOKEN }}@github.com/Apicurio/apicurio-sboms.git sboms
45
+ cd sboms
46
+ echo "SBOM_OUTPUT_DIR=$(pwd)/apicurio-registry/$RELEASE_VERSION" >> $GITHUB_ENV
47
+ echo "Generating SBOMs into: $SBOM_OUTPUT_DIR"
45
48
46
49
- name : Set up JDK 17
47
50
uses : actions/setup-java@v3
48
51
with :
49
52
java-version : ' 17'
50
53
distribution : ' temurin'
51
54
55
+ - name : Set up Node
56
+ uses : actions/setup-node@v3
57
+ with :
58
+ node-version : 20
59
+ cache : ' npm'
60
+ cache-dependency-path : ' ui/**/package-lock.json'
61
+
52
62
- name : Maven Install
53
63
run : |
54
64
cd registry
55
65
mvn install -Pprod -DskipTests -Dspotless.check.skip=true
56
66
57
67
- name : Generate Maven SBOMs
58
68
run : |
59
- mkdir -p sboms/apicurio-registry/$RELEASE_VERSION
69
+ mkdir -p $SBOM_OUTPUT_DIR
60
70
cd registry
61
- mvn -f app/pom.xml dependency:tree -DoutputType=dot -Dscope=runtime -DoutputFile=../sboms/apicurio-registry/$RELEASE_VERSION/apicurio-registry-app-$RELEASE_VERSION.runtime.sbom.dot
71
+ echo "Generating Maven SBOM output to: $SBOM_OUTPUT_DIR/apicurio-registry-app-$RELEASE_VERSION.runtime.sbom.dot"
72
+ mvn -f app/pom.xml dependency:tree -DoutputType=dot -Dscope=runtime -DoutputFile=$SBOM_OUTPUT_DIR/apicurio-registry-app-$RELEASE_VERSION.runtime.sbom.dot
62
73
63
74
- name : Generate npm SBOMs
64
75
run : |
65
76
cd registry/ui
66
77
npm install
67
78
cd ui-app
68
- npm list -prod -depth 10 --json > ../../../sboms/apicurio-registry/$RELEASE_VERSION/apicurio-registry-ui-app-$RELEASE_VERSION.sbom.npm
79
+ echo "Generating npm SBOM output to: $SBOM_OUTPUT_DIR/apicurio-registry-ui-app-$RELEASE_VERSION.sbom.npm"
80
+ npm list -prod -depth 10 --json > $SBOM_OUTPUT_DIR/apicurio-registry-ui-app-$RELEASE_VERSION.sbom.npm
69
81
cd ../ui-docs
70
- npm list -prod -depth 10 --json > ../../../sboms/apicurio-registry/$RELEASE_VERSION/apicurio-registry-ui-docs-$RELEASE_VERSION.sbom.npm
82
+ echo "Generating npm SBOM output to: $SBOM_OUTPUT_DIR/apicurio-registry-ui-docs-$RELEASE_VERSION.sbom.npm"
83
+ npm list -prod -depth 10 --json > $SBOM_OUTPUT_DIR/apicurio-registry-ui-docs-$RELEASE_VERSION.sbom.npm
71
84
72
85
- name : Commit SBOMs to Repo
73
86
run : |
0 commit comments