Skip to content

Commit

Permalink
Merge pull request #504 from catenax-ng/feat/cleaning_service/add_to_…
Browse files Browse the repository at this point in the history
…trivy

CICD: Add Cleaning Service Dummy to trivy.yml
  • Loading branch information
nicoprow authored Oct 9, 2023
2 parents d881368 + f9a1cec commit 26f3a2b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,39 @@ jobs:
with:
sarif_file: "trivy-results4.sarif"

analyze-product-bpdm-cleaning-service-dummy:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
packages: read

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner
if: always()
uses: aquasecurity/trivy-action@master
with:
# Path to Docker image
image-ref: "docker.io/tractusx/bpdm-cleaning-service-dummy:latest"
format: "sarif"
output: "trivy-results4.sarif"
exit-code: "1"
severity: "CRITICAL,HIGH"
timeout: 15m
env:
TRIVY_USERNAME: ${{ github.actor }}
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results4.sarif"

analyze-product-bpdm-orchestrator:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 26f3a2b

Please sign in to comment.