Skip to content

Commit

Permalink
Update sign_executable.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
michelu89 committed Feb 2, 2024
1 parent 9c6e19d commit ea0c833
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/sign_executable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Trigger Jenkins Job, for singing executable
run: |
run: |
DATA='{"repository": {"url": "https://github.com/eclipse-cbi/org.eclipse.cbi", "html_url": "https://github.com/eclipse-cbi/org.eclipse.cbi", "owner": { "name": "eclipse-cbi"}}, "pusher": { "name": "foobar", "email": "[email protected]"}}'
SHA1="$(echo -n "${DATA}" | openssl dgst -sha1 -hmac ${{ secrets.WEBHOOK_SECRET }}" | sed 's/SHA1(stdin)= //')"
SHA1="$(echo -n "${DATA}" | openssl dgst -sha1 -hmac "${WEBHOOK_SECRET}" | sed 's/SHA1(stdin)= //')"
curl -X POST https://ci.eclipse.org/esmf/job/Sign-Native-Image/github-webhook/ \
-H "Content-Type: application/json" \
-H "X-GitHub-Event: push" \
-H "X-Hub-Signature: sha1=${SHA1}" -d "${DATA}"
curl -X POST https://ci.eclipse.org/esmf/github-webhook/ -H "Content-Type: application/json" \
-H "X-GitHub-Event: push" -H "X-Hub-Signature: sha1=${SHA1}" -d "${DATA}"

0 comments on commit ea0c833

Please sign in to comment.