Skip to content

Commit

Permalink
Merge pull request #505 from catenax-ng/feat/orchestrator/add_to_triv…
Browse files Browse the repository at this point in the history
…y_scan

CICD: Add Orchestrator service to trivy.yml
  • Loading branch information
nicoprow authored Oct 4, 2023
2 parents 9bb6ac6 + b85a161 commit 8f791a2
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 @@ -140,3 +140,36 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results4.sarif"

analyze-product-bpdm-orchestrator:
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-orchestrator: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"

0 comments on commit 8f791a2

Please sign in to comment.