Skip to content

Commit

Permalink
add trivy scan to docker
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Jansen <jan.jansen@gdata.de>
  • Loading branch information
farodin91 authored and porunov committed Oct 20, 2023
1 parent 27e515c commit ff58c43
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ jobs:
include:
- args: ""
java: 8
tag_suffix: ""
- args: "-Pjava-11"
java: 11
tag_suffix: "-java-11"
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
Expand All @@ -95,6 +97,22 @@ jobs:
with:
name: distribution-builds
path: janusgraph-dist/target/janusgraph-*.zip
- name: Set JanusGraph version environment variable
run: |
export JG_VER="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$(git rev-parse --short HEAD)"
echo "JG_VER=${JG_VER}" >> $GITHUB_ENV
- name: Run Trivy vulnerability scanner
if: github.repository == 'janusgraph/janusgraph'
uses: aquasecurity/trivy-action@0.12.0
with:
image-ref: 'ghcr.io/janusgraph/janusgraph:${{ env.JG_VER }}${{ matrix.tag_suffix }}'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
if: github.repository == 'janusgraph/janusgraph'
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

tp-tests:
runs-on: ubuntu-22.04
Expand Down

1 comment on commit ff58c43

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: ff58c43 Previous: 68f49a1 Ratio
org.janusgraph.JanusGraphSpeedBenchmark.basicAddAndDelete 14453.124324817778 ms/op 14750.912757292574 ms/op 0.98
org.janusgraph.GraphCentricQueryBenchmark.getVertices 1399.9366351085384 ms/op 1346.1948471823591 ms/op 1.04
org.janusgraph.MgmtOlapJobBenchmark.runClearIndex 220.45568392173914 ms/op 221.0470166869565 ms/op 1.00
org.janusgraph.MgmtOlapJobBenchmark.runReindex 469.8011513036364 ms/op 463.2053476121212 ms/op 1.01
org.janusgraph.JanusGraphSpeedBenchmark.basicCount 401.8933237242006 ms/op 473.90261975756744 ms/op 0.85
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesAllPropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 9585.884596823207 ms/op 8776.908210320456 ms/op 1.09
org.janusgraph.CQLMultiQueryBenchmark.getElementsWithUsingEmitRepeatSteps 35213.715265564286 ms/op 29926.15626700794 ms/op 1.18
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithSmallBatch 33886.90286815833 ms/op 32526.844515654997 ms/op 1.04
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.vertexCentricPropertiesFetching 67476.57282786668 ms/op 59550.41166966667 ms/op 1.13
org.janusgraph.CQLMultiQueryBenchmark.getAllElementsTraversedFromOuterVertex 16763.809144666593 ms/op 15006.601503888596 ms/op 1.12
org.janusgraph.CQLMultiQueryBenchmark.getVerticesWithDoubleUnion 625.9640707127721 ms/op 610.4456304918209 ms/op 1.03
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesAllPropertiesWithUnlimitedBatch 9038.266750842893 ms/op 8351.21971247489 ms/op 1.08
org.janusgraph.CQLMultiQueryBenchmark.getNames 16763.000290602886 ms/op 14737.422644903432 ms/op 1.14
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesThreePropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 11761.944139618954 ms/op 10903.708326936881 ms/op 1.08
org.janusgraph.CQLMultiQueryBenchmark.getLabels 14944.093028172223 ms/op 13305.68422999396 ms/op 1.12
org.janusgraph.CQLMultiQueryBenchmark.getVerticesFilteredByAndStep 673.4314512213906 ms/op 672.9530191288869 ms/op 1.00
org.janusgraph.CQLMultiQueryBenchmark.getVerticesFromMultiNestedRepeatStepStartingFromSingleVertex 23023.78495980286 ms/op 21151.69997790227 ms/op 1.09
org.janusgraph.CQLMultiQueryBenchmark.getVerticesWithCoalesceUsage 611.4170413270174 ms/op 566.2220666199714 ms/op 1.08
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithAllMultiQuerySlicesUnderMaxRequestsPerConnection 28600.780455741588 ms/op 25822.55861829052 ms/op 1.11
org.janusgraph.CQLMultiQueryBenchmark.getIdToOutVerticesProjection 433.72776468736276 ms/op 411.4887692411499 ms/op 1.05
org.janusgraph.CQLMultiQueryMultiSlicesBenchmark.getValuesMultiplePropertiesWithUnlimitedBatch 33268.46706912513 ms/op 29794.881563733332 ms/op 1.12
org.janusgraph.CQLMultiQueryBenchmark.getNeighborNames 16851.90318103847 ms/op 14451.119747276667 ms/op 1.17
org.janusgraph.CQLMultiQueryBenchmark.getElementsWithUsingRepeatUntilSteps 18017.145758844832 ms/op 16086.213028835715 ms/op 1.12
org.janusgraph.CQLMultiQueryBenchmark.getAdjacentVerticesLocalCounts 16493.743934305385 ms/op 14981.480702516508 ms/op 1.10

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.