Add deploy and verify
This commit is contained in:
@@ -48,6 +48,26 @@ jobs:
|
|||||||
org.opencontainers.image.ref.name=${{ env.GITHUB_REF }}
|
org.opencontainers.image.ref.name=${{ env.GITHUB_REF }}
|
||||||
org.opencontainers.image.title=ESN Code Scanner App
|
org.opencontainers.image.title=ESN Code Scanner App
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Trigger Komodo Deploy
|
||||||
|
env:
|
||||||
|
URL: ${{ secrets.KOMODO_URL }}
|
||||||
|
SECRET: ${{ secrets.KOMODO_SECRET }}
|
||||||
|
BODY_FILE: ${{ github.event_path }}
|
||||||
|
run: |
|
||||||
|
SIG="sha256=$(openssl dgst -sha256 -hmac "$SECRET" "$BODY_FILE" | cut -d' ' -f2)"
|
||||||
|
curl -fsSL -X POST "$URL" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-H "X-Hub-Signature-256: $SIG" \
|
||||||
|
-H 'X-GitHub-Event: push' \
|
||||||
|
-H "X-GitHub-Delivery: $GITHUB_RUN_ID.$GITHUB_RUN_NUMBER" \
|
||||||
|
--data @"$BODY_FILE"
|
||||||
|
|
||||||
|
verify:
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
- name: Run Trivy vulnerability scanner
|
- name: Run Trivy vulnerability scanner
|
||||||
uses: aquasecurity/trivy-action@0.24.0
|
uses: aquasecurity/trivy-action@0.24.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user