Skip to content

Commit

Permalink
Merge pull request eclipse-tractusx#60 from catenax-ng/trivy-changes
Browse files Browse the repository at this point in the history
chore: Modification in trivy workflow
  • Loading branch information
almadigabor committed Apr 25, 2024
2 parents a8296e3 + 1223ab0 commit 4c736f3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#################################################################################
# Copyright (c) 2022,2023 T-Systems International GmbH
# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation
# Copyright (c) 2022,2024 T-Systems International GmbH
# Copyright (c) 2022,2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand All @@ -19,35 +19,34 @@
################################################################################

name: "Trivy"

on:
push:
branches:
- main
schedule:
# Once a day
- cron: "0 0 * * *"
- cron: "0 0 * * 0"
workflow_dispatch:
# Trigger manually

jobs:
analyze-config:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.12.0
uses: aquasecurity/trivy-action@0.18.0
with:
image-ref: "tractusx/data-exchange-test-service:latest"
image-ref: "tractusx/data-exchange-test-service:latest" # Pull image from Docker Hub and run Trivy vulnerability scanner
format: "sarif"
output: "trivy-results.sarif"
vuln-type: "os,library"
exit-code: "1" # Trivy exits with code 1 if vulnerabilities are found, causing the workflow step to fail.
severity: "CRITICAL,HIGH" # While vulnerabilities of all severities are reported in the SARIF output, the exit code and workflow failure are triggered only by these specified severities (CRITICAL or HIGH).
hide-progress: false

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: "trivy-results.sarif"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This service will help for testing the connectors and also can be used for healt

### Software Version
```shell
Latest Helm version is v1.0.13
Latest Helm version is v1.0.14
Latest Application version is v1.0.10
```
### How to run
Expand Down
2 changes: 1 addition & 1 deletion charts/data-exchange/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.13
version: 1.0.14

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/data-exchange/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# data-exchange

![Version: 1.0.13](https://img.shields.io/badge/Version-1.0.13-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.10](https://img.shields.io/badge/AppVersion-1.0.10-informational?style=flat-square)
![Version: 1.0.14](https://img.shields.io/badge/Version-1.0.14-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.10](https://img.shields.io/badge/AppVersion-1.0.10-informational?style=flat-square)

Data exchange service is used to exchange the data between connectors

Expand Down

0 comments on commit 4c736f3

Please sign in to comment.