11---
22env :
33 NODEJS_VERSION : v18.18.2
4+ RUN_TRIVY_SCAN : false
45jobs :
56 ActionLint :
67 uses : ./.github/workflows/actionlint.yaml
@@ -1533,7 +1534,7 @@ jobs:
15331534 with :
15341535 node-version : ${{ env.NODEJS_VERSION }}
15351536 - uses : actions/checkout@v4.1.1
1536-
1537+
15371538 - id : yarn-cache
15381539 name : Restore Yarn Cache
15391540 uses : actions/cache@v4.0.1
@@ -1543,6 +1544,19 @@ jobs:
15431544 restore-keys : |
15441545 ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
15451546 - run : ./tools/ci.sh
1547+
1548+ - name : Build an image from Dockerfile
1549+ run : DOCKER_BUILDKIT=1 docker build . -f ./packages/cactus-plugin-ledger-connector-iroha/Dockerfile -t plugin-ledger-connector-iroha
1550+ - if : ${{ env.RUN_TRIVY_SCAN == 'true' }}
1551+ name : Run Trivy vulnerability scan for plugin-ledger-connector-iroha
1552+ uses : aquasecurity/trivy-action@master
1553+ with :
1554+ image-ref : ' plugin-ledger-connector-iroha'
1555+ format : ' table'
1556+ exit-code : ' 1'
1557+ ignore-unfixed : false
1558+ vuln-type : ' os,library'
1559+ severity : ' CRITICAL,HIGH'
15461560 cactus-plugin-ledger-connector-iroha2 :
15471561 continue-on-error : false
15481562 needs :
@@ -1618,7 +1632,7 @@ jobs:
16181632 with :
16191633 node-version : ${{ env.NODEJS_VERSION }}
16201634 - uses : actions/checkout@v4.1.1
1621-
1635+
16221636 - id : yarn-cache
16231637 name : Restore Yarn Cache
16241638 uses : actions/cache@v4.0.1
@@ -1628,6 +1642,19 @@ jobs:
16281642 restore-keys : |
16291643 ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
16301644 - run : ./tools/ci.sh
1645+
1646+ - name : Build an image from Dockerfile
1647+ run : DOCKER_BUILDKIT=1 docker build . -f ./packages/cactus-plugin-ledger-connector-quorum/Dockerfile -t plugin-ledger-connector-quorum
1648+ - if : ${{ env.RUN_TRIVY_SCAN == 'true' }
1649+ name : Run Trivy vulnerability scan for plugin-ledger-connector-quorum
1650+ uses : aquasecurity/trivy-action@master
1651+ with :
1652+ image-ref : ' plugin-ledger-connector-quorum'
1653+ format : ' table'
1654+ exit-code : ' 1'
1655+ ignore-unfixed : false
1656+ vuln-type : ' os,library'
1657+ severity : ' CRITICAL,HIGH'
16311658 cactus-plugin-ledger-connector-sawtooth :
16321659 continue-on-error : false
16331660 env :
@@ -1970,7 +1997,7 @@ jobs:
19701997 with :
19711998 node-version : ${{ env.NODEJS_VERSION }}
19721999 - uses : actions/checkout@v4.1.1
1973-
2000+
19742001 - id : yarn-cache
19752002 name : Restore Yarn Cache
19762003 uses : actions/cache@v4.0.1
@@ -2095,16 +2122,7 @@ jobs:
20952122 steps :
20962123 - uses : actions/checkout@v4.1.1
20972124 - name : ghcr.io/hyperledger/cactus-besu-all-in-one
2098- run : DOCKER_BUILDKIT=1 docker build ./tools/docker/besu-all-in-one/ -f ./tools/docker/besu-all-in-one/Dockerfile -t cactus-besu-all-in-one
2099- - name : Run Trivy vulnerability scan for cactus-besu-all-in-one
2100- uses : aquasecurity/trivy-action@0.11.2
2101- with :
2102- image-ref : ' cactus-besu-all-in-one'
2103- format : ' table'
2104- exit-code : ' 1'
2105- ignore-unfixed : true
2106- vuln-type : ' os,library'
2107- severity : ' CRITICAL,HIGH'
2125+ run : DOCKER_BUILDKIT=1 docker build ./tools/docker/besu-all-in-one/ -f ./tools/docker/besu-all-in-one/Dockerfile
21082126 ghcr-cmd-api-server :
21092127 runs-on : ubuntu-22.04
21102128 needs :
@@ -2114,13 +2132,14 @@ jobs:
21142132 - uses : actions/checkout@v4.1.1
21152133 - name : ghcr.io/hyperledger/cactus-cmd-api-server
21162134 run : DOCKER_BUILDKIT=1 docker build . -f ./packages/cactus-cmd-api-server/Dockerfile -t cactus-cmd-api-server
2117- - name : Run Trivy vulnerability scan for cactus-cmd-api-server
2118- uses : aquasecurity/trivy-action@0.11.2
2135+ - if : ${{ env.RUN_TRIVY_SCAN == 'true' }}
2136+ name : Run Trivy vulnerability scan for cactus-cmd-api-server
2137+ uses : aquasecurity/trivy-action@master
21192138 with :
21202139 image-ref : ' cactus-cmd-api-server'
21212140 format : ' table'
21222141 exit-code : ' 1'
2123- ignore-unfixed : true
2142+ ignore-unfixed : false
21242143 vuln-type : ' os,library'
21252144 severity : ' CRITICAL,HIGH'
21262145 ghcr-connector-besu :
@@ -2132,13 +2151,14 @@ jobs:
21322151 - uses : actions/checkout@v4.1.1
21332152 - name : ghcr.io/hyperledger/cactus-connector-besu
21342153 run : DOCKER_BUILDKIT=1 docker build ./packages/cactus-plugin-ledger-connector-besu/ -f ./packages/cactus-plugin-ledger-connector-besu/Dockerfile -t cactus-connector-besu
2135- - name : Run Trivy vulnerability scan for cactus-connector-besu
2136- uses : aquasecurity/trivy-action@0.11.2
2154+ - if : ${{ env.RUN_TRIVY_SCAN == 'true' }}
2155+ name : Run Trivy vulnerability scan for cactus-connector-besu
2156+ uses : aquasecurity/trivy-action@master
21372157 with :
21382158 image-ref : ' cactus-connector-besu'
21392159 format : ' table'
21402160 exit-code : ' 1'
2141- ignore-unfixed : true
2161+ ignore-unfixed : false
21422162 vuln-type : ' os,library'
21432163 severity : ' CRITICAL,HIGH'
21442164 ghcr-connector-corda-server :
@@ -2151,13 +2171,14 @@ jobs:
21512171 - uses : actions/checkout@v4.1.1
21522172 - name : ghcr.io/hyperledger/cactus-connector-corda-server
21532173 run : DOCKER_BUILDKIT=1 docker build ./packages/cactus-plugin-ledger-connector-corda/src/main-server/ -f ./packages/cactus-plugin-ledger-connector-corda/src/main-server/Dockerfile -t cactus-connector-corda-server
2154- - name : Run Trivy vulnerability scan for cactus-connector-corda-server
2155- uses : aquasecurity/trivy-action@0.11.2
2174+ - if : ${{ env.RUN_TRIVY_SCAN == 'true' }}
2175+ name : Run Trivy vulnerability scan for cactus-connector-corda-server
2176+ uses : aquasecurity/trivy-action@master
21562177 with :
21572178 image-ref : ' cactus-connector-corda-server'
21582179 format : ' table'
21592180 exit-code : ' 1'
2160- ignore-unfixed : true
2181+ ignore-unfixed : false
21612182 vuln-type : ' os,library'
21622183 severity : ' CRITICAL,HIGH'
21632184 ghcr-connector-fabric :
@@ -2170,13 +2191,14 @@ jobs:
21702191 - uses : actions/checkout@v4.1.1
21712192 - name : ghcr.io/hyperledger/cactus-connector-fabric
21722193 run : DOCKER_BUILDKIT=1 docker build ./packages/cactus-plugin-ledger-connector-fabric/ -f ./packages/cactus-plugin-ledger-connector-fabric/Dockerfile -t cactus-connector-fabric
2173- - name : Run Trivy vulnerability scan for cactus-connector-fabric
2174- uses : aquasecurity/trivy-action@0.11.2
2194+ - if : ${{ env.RUN_TRIVY_SCAN == 'true' }}
2195+ name : Run Trivy vulnerability scan for cactus-connector-fabric
2196+ uses : aquasecurity/trivy-action@master
21752197 with :
21762198 image-ref : ' cactus-connector-fabric'
21772199 format : ' table'
21782200 exit-code : ' 1'
2179- ignore-unfixed : true
2201+ ignore-unfixed : false
21802202 vuln-type : ' os,library'
21812203 severity : ' CRITICAL,HIGH'
21822204 ghcr-corda-all-in-one :
@@ -2187,16 +2209,8 @@ jobs:
21872209 steps :
21882210 - uses : actions/checkout@v4.1.1
21892211 - name : ghcr.io/hyperledger/cactus-corda-all-in-one
2190- run : DOCKER_BUILDKIT=1 docker build ./tools/docker/corda-all-in-one/ -f ./tools/docker/corda-all-in-one/Dockerfile -t cactus-corda-all-in-one
2191- - name : Run Trivy vulnerability scan for cactus-corda-all-in-one
2192- uses : aquasecurity/trivy-action@0.11.2
2193- with :
2194- image-ref : ' cactus-corda-all-in-one'
2195- format : ' table'
2196- exit-code : ' 1'
2197- ignore-unfixed : true
2198- vuln-type : ' os,library'
2199- severity : ' CRITICAL,HIGH'
2212+ run : DOCKER_BUILDKIT=1 docker build ./tools/docker/corda-all-in-one/ -f ./tools/docker/corda-all-in-one/Dockerfile
2213+
22002214 ghcr-corda-all-in-one-flowdb :
22012215 runs-on : ubuntu-22.04
22022216 steps :
@@ -2212,15 +2226,7 @@ jobs:
22122226 - uses : actions/checkout@v4.1.1
22132227 - name : ghcr.io/hyperledger/cactus-corda-all-in-one-obligation
22142228 run : DOCKER_BUILDKIT=1 docker build ./tools/docker/corda-all-in-one/ -f ./tools/docker/corda-all-in-one/corda-v4_8/Dockerfile -t cactus-corda-all-in-one-obligation
2215- - name : Run Trivy vulnerability scan for cactus-corda-all-in-one-obligation
2216- uses : aquasecurity/trivy-action@0.11.2
2217- with :
2218- image-ref : ' cactus-corda-all-in-one-obligation'
2219- format : ' table'
2220- exit-code : ' 1'
2221- ignore-unfixed : true
2222- vuln-type : ' os,library'
2223- severity : ' CRITICAL,HIGH'
2229+
22242230 ghcr-dev-container-vscode :
22252231 runs-on : ubuntu-22.04
22262232 needs :
@@ -2243,121 +2249,66 @@ jobs:
22432249 steps :
22442250 - uses : actions/checkout@v4.1.1
22452251 - name : ghcr.io/hyperledger/cactus-example-carbon-accounting
2246- run : DOCKER_BUILDKIT=1 docker build . -f ./examples/carbon-accounting/Dockerfile -t cactus-example-carbon-accounting
2247- - name : Run Trivy vulnerability scan for cactus-example-carbon-accounting
2248- uses : aquasecurity/trivy-action@0.11.2
2249- with :
2250- image-ref : ' cactus-example-carbon-accounting'
2251- format : ' table'
2252- exit-code : ' 1'
2253- ignore-unfixed : true
2254- vuln-type : ' os,library'
2255- severity : ' CRITICAL,HIGH'
2252+ run : DOCKER_BUILDKIT=1 docker build . -f ./examples/carbon-accounting/Dockerfile
2253+
22562254 ghcr-example-supply-chain-app :
22572255 runs-on : ubuntu-22.04
22582256 steps :
22592257 - uses : actions/checkout@v4.1.1
22602258 - name : ghcr.io/hyperledger/cactus-example-supply-chain-app
22612259 run : DOCKER_BUILDKIT=1 docker build . -f ./examples/cactus-example-supply-chain-backend/Dockerfile -t cactus-example-supply-chain-app
2262- - name : Run Trivy vulnerability scan for cactus-example-supply-chain-app
2263- uses : aquasecurity/trivy-action@0.11.2
2264- with :
2265- image-ref : ' cactus-example-supply-chain-app'
2266- format : ' table'
2267- exit-code : ' 1'
2268- ignore-unfixed : true
2269- vuln-type : ' os,library'
2270- severity : ' CRITICAL,HIGH'
2260+
22712261 ghcr-fabric-all-in-one :
22722262 runs-on : ubuntu-22.04
22732263 steps :
22742264 - uses : actions/checkout@v4.1.1
22752265 - name : ghcr.io/hyperledger/cactus-fabric-all-in-one
2276- run : DOCKER_BUILDKIT=1 docker build ./tools/docker/fabric-all-in-one/ -f ./tools/docker/fabric-all-in-one/Dockerfile_v1.4.x -t cactus-fabric-all-in-one
2277- - name : Run Trivy vulnerability scan for cactus-fabric-all-in-one
2278- uses : aquasecurity/trivy-action@0.11.2
2279- with :
2280- image-ref : ' cactus-fabric-all-in-one'
2281- format : ' table'
2282- exit-code : ' 1'
2283- ignore-unfixed : true
2284- vuln-type : ' os,library'
2285- severity : ' CRITICAL,HIGH'
2266+ run : DOCKER_BUILDKIT=1 docker build ./tools/docker/fabric-all-in-one/ -f ./tools/docker/fabric-all-in-one/Dockerfile_v1.4.x
2267+
22862268 ghcr-fabric2-all-in-one :
22872269 runs-on : ubuntu-22.04
22882270 steps :
22892271 - uses : actions/checkout@v4.1.1
22902272 - name : ghcr.io/hyperledger/cactus-fabric2-all-in-one
2291- run : DOCKER_BUILDKIT=1 docker build ./tools/docker/fabric-all-in-one/ -f ./tools/docker/fabric-all-in-one/Dockerfile_v2.x -t cactus-fabric2-all-in-one
2292- - name : Run Trivy vulnerability scan for cactus-fabric2-all-in-one
2293- uses : aquasecurity/trivy-action@0.11.2
2294- with :
2295- image-ref : ' cactus-fabric2-all-in-one'
2296- format : ' table'
2297- exit-code : ' 1'
2298- ignore-unfixed : true
2299- vuln-type : ' os,library'
2300- severity : ' CRITICAL,HIGH'
2273+ run : DOCKER_BUILDKIT=1 docker build ./tools/docker/fabric-all-in-one/ -f ./tools/docker/fabric-all-in-one/Dockerfile_v2.x
2274+
23012275 ghcr-iroha-all-in-one :
23022276 runs-on : ubuntu-22.04
23032277 steps :
23042278 - uses : actions/checkout@v4.1.1
23052279 - name : ghcr.io/hyperledger/cactus-iroha-all-in-one
2306- run : DOCKER_BUILDKIT=1 docker build ./tools/docker/iroha-all-in-one/ -f ./tools/docker/iroha-all-in-one/Dockerfile -t cactus-iroha-all-in-one
2307- - name : Run Trivy vulnerability scan for cactus-iroha-all-in-one
2308- uses : aquasecurity/trivy-action@0.11.2
2309- with :
2310- image-ref : ' cactus-iroha-all-in-one'
2311- format : ' table'
2312- exit-code : ' 1'
2313- ignore-unfixed : true
2314- vuln-type : ' os,library'
2315- severity : ' CRITICAL,HIGH'
2280+ run : DOCKER_BUILDKIT=1 docker build ./tools/docker/iroha-all-in-one/ -f ./tools/docker/iroha-all-in-one/Dockerfile
2281+
23162282 ghcr-keychain-vault-server :
23172283 runs-on : ubuntu-22.04
23182284 steps :
23192285 - uses : actions/checkout@v4.1.1
23202286 - name : ghcr.io/hyperledger/cactus-keychain-vault-server
23212287 run : DOCKER_BUILDKIT=1 docker build ./packages/cactus-plugin-keychain-vault/src/cactus-keychain-vault-server/ -f ./packages/cactus-plugin-keychain-vault/src/cactus-keychain-vault-server/Dockerfile -t cactus-keychain-vault-server
2322- - name : Run Trivy vulnerability scan for cactus-keychain-vault-server
2323- uses : aquasecurity/trivy-action@0.11.2
2288+ - if : ${{ env.RUN_TRIVY_SCAN == 'true' }}
2289+ name : Run Trivy vulnerability scan for cactus-keychain-vault-server
2290+ uses : aquasecurity/trivy-action@master
23242291 with :
23252292 image-ref : ' cactus-keychain-vault-server'
23262293 format : ' table'
23272294 exit-code : ' 1'
2328- ignore-unfixed : true
2295+ ignore-unfixed : false
23292296 vuln-type : ' os,library'
23302297 severity : ' CRITICAL,HIGH'
23312298 ghcr-quorum-all-in-one :
23322299 runs-on : ubuntu-22.04
23332300 steps :
23342301 - uses : actions/checkout@v4.1.1
23352302 - name : ghcr.io/hyperledger/cactus-quorum-all-in-one
2336- run : DOCKER_BUILDKIT=1 docker build ./tools/docker/quorum-all-in-one/ -f ./tools/docker/quorum-all-in-one/Dockerfile -t cactus-quorum-all-in-one
2337- - name : Run Trivy vulnerability scan for cactus-quorum-all-in-one
2338- uses : aquasecurity/trivy-action@0.11.2
2339- with :
2340- image-ref : ' cactus-quorum-all-in-one'
2341- format : ' table'
2342- exit-code : ' 1'
2343- ignore-unfixed : true
2344- vuln-type : ' os,library'
2345- severity : ' CRITICAL,HIGH'
2303+ run : DOCKER_BUILDKIT=1 docker build ./tools/docker/quorum-all-in-one/ -f ./tools/docker/quorum-all-in-one/Dockerfile
2304+
23462305 ghcr-quorum-multi-party-all-in-one :
23472306 runs-on : ubuntu-22.04
23482307 steps :
23492308 - uses : actions/checkout@v4.1.1
23502309 - name : ghcr.io/hyperledger/cactus-quorum-multi-party-all-in-one
23512310 run : DOCKER_BUILDKIT=1 docker build ./tools/docker/quorum-multi-party-all-in-one/ -f ./tools/docker/quorum-multi-party-all-in-one/Dockerfile -t cactus-quorum-multi-party-all-in-one
2352- - name : Run Trivy vulnerability scan for cactus-quorum-multi-party-all-in-one
2353- uses : aquasecurity/trivy-action@0.11.2
2354- with :
2355- image-ref : ' cactus-quorum-multi-party-all-in-one'
2356- format : ' table'
2357- exit-code : ' 1'
2358- ignore-unfixed : true
2359- vuln-type : ' os,library'
2360- severity : ' CRITICAL,HIGH'
2311+
23612312name : Cactus_CI
23622313' on ' :
23632314 pull_request :
@@ -2368,4 +2319,4 @@ name: Cactus_CI
23682319 push :
23692320 branches :
23702321 - main
2371- - dev
2322+ - dev
0 commit comments