Skip to content

Commit

Permalink
Merge pull request #346 from catenax-ng/fix/update_veracode_scan
Browse files Browse the repository at this point in the history
fix: updated springboot version and veracode scan file
  • Loading branch information
nicoprow authored Aug 3, 2023
2 parents c5ddc51 + 5fd2947 commit 20437de
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 99 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,36 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results3.sarif"

analyze-product-bpdm-bridge-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: "ghcr.io/${{ github.repository }}/bridge-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"
4 changes: 4 additions & 0 deletions .github/workflows/veracode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
- name: Copy Gate JAR
run: cp bpdm-gate/target/bpdm-gate.jar target/veracode/bpdm-gate.jar

#Copy the bpdm-bridge-dummy jar to directory which gets uploaded to Veracode
- name: Copy Bridge Dummy JAR
run: cp bpdm-bridge-dummy/target/bpdm-bridge-dummy.jar target/veracode/bpdm-bridge-dummy.jar

#Start Veracode scan
- name: Run Veracode Upload And Scan
uses: veracode/[email protected]
Expand Down
Loading

0 comments on commit 20437de

Please sign in to comment.