From 617c00e8dc520ecd1d9c00804ff6d526cf6822f9 Mon Sep 17 00:00:00 2001 From: erman Date: Tue, 24 Jun 2025 11:25:40 +0200 Subject: [PATCH] Add deploy and verify --- .gitea/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index ba39fd8..5d40120 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -48,6 +48,26 @@ jobs: org.opencontainers.image.ref.name=${{ env.GITHUB_REF }} 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 uses: aquasecurity/trivy-action@0.24.0 with: