Skip to content

Commit

Permalink
GDB-9036: Added CI workflow
Browse files Browse the repository at this point in the history
- Added CI workflow for PRs and the main branch
- Added build status badge in the readme
- Added trivy configuration
  • Loading branch information
mihailradkov committed Jan 25, 2024
1 parent 11381ec commit 2fb2984
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Continuous Integration

on:
pull_request:
push:
branches: [ "master" ]

jobs:
analyze:
name: Analyze the Helm chart
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- id: checkout_repository
name: Checkout repository
# actions/checkout@v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- id: setup_helm
name: Setup Helm
# azure/setup-helm@v3.5
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78
with:
version: v3.14.0

- id: run_helm_lint
name: Run Helm lint
run: helm lint --strict .

- id: run_helm_template
name: Run Helm template
run: helm template . > template_output.yaml

- id: run_trivy_config
name: Run Trivy vulnerability scanner
# aquasecurity/trivy-action@v0.16.1
uses: aquasecurity/trivy-action@d43c1f16c00cfd3978dde6c07f4bbcf9eb6993ca
with:
scan-type: config
trivy-config: trivy.yaml
hide-progress: false
# Note: Until current issues are fixed, do not fail the build
exit-code: '0'
format: sarif
output: trivy.sarif

- id: run_sarif_upload
name: Upload Trivy SARIF results
# github/codeql-action/upload-sarif@v2.22.9
uses: github/codeql-action/upload-sarif@382a50a0284c0de445104889a9d6003acb4b3c1d
timeout-minutes: 1
with:
sarif_file: trivy.sarif
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@

# Helm
values_overrides.yaml
template_output.yaml
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Helm charts for GraphDB

[![CI](https://github.com/Ontotext-AD/graphdb-helm/actions/workflows/ci.yml/badge.svg)](https://github.com/Ontotext-AD/graphdb-helm/actions/workflows/ci.yml)

You can download the GraphDB Helm chart, including all sub-charts managed by Ontotext, from the [Ontotext Helm repository](https://maven.ontotext.com/repository/helm-public/).

## Install
Expand Down
7 changes: 7 additions & 0 deletions trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
timeout: 5m
exit-code: 1
severity:
- HIGH
- CRITICAL
- MEDIUM
format: table

0 comments on commit 2fb2984

Please sign in to comment.