Skip to content

Commit

Permalink
/
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkogni7o committed Sep 9, 2024
1 parent 3098dfc commit 37f4557
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pipeline {
environment {
SEMGREP_APP_TOKEN = credentials('SEMGREP_APP_TOKEN')
DTRACK_API_KEY = credentials('dtrack_api_key')
PROJECT_UUID = credentials('PROJECT_UUID')

// Uncomment the following line to scan changed
// files in PRs or MRs (diff-aware scanning):
Expand Down Expand Up @@ -63,15 +64,15 @@ pipeline {
sh '''
curl -X "POST" "http://localhost:8080/api/v1/bom" \
-H 'Content-Type: multipart/form-data' \
-H 'X-Api-Key: $(DTRACK_API_KEY)' \
-F "project=$(PROJECT_UUID)" \
-H 'X-Api-Key: $DTRACK_API_KEY' \
-F "project=$PROJECT_UUID" \
-F "bom=@trivy_scan.json"
'''
sh '''
curl -X "POST" "http://localhost:8080/api/v1/bom" \
-H 'Content-Type: multipart/form-data' \
-H 'X-Api-Key: ${DTRACK_API_KEY}' \
-F "project=${PROJECTUUID}" \
-H 'X-Api-Key: $DTRACK_API_KEY' \
-F "project=$PROJECTUUID" \
-F "bom=@cdxgen_sbom.json"
'''
}
Expand Down

0 comments on commit 37f4557

Please sign in to comment.