Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages-workflows/process-web-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
id: validate
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEB_URL: ${{ github.event.client_payload.url }}
WANT_SHA: ${{ github.event.client_payload.sha256 }}
DEB_URL: ${{ github.event.client_payload.binary.url }}
WANT_SHA: ${{ github.event.client_payload.binary.sha256 }}
SUBMITTER: ${{ github.event.client_payload.login }}
# JSON array of the submitter's verified emails (from the Worker,
# which read them via the user's OAuth token — trusted).
Expand Down Expand Up @@ -271,9 +271,9 @@ jobs:
if: steps.validate.outputs.errors == '' && steps.meta.outputs.errors == ''
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEB_URL: ${{ github.event.client_payload.url }}
WANT_SHA: ${{ github.event.client_payload.sha256 }}
SIZE: ${{ github.event.client_payload.size }}
DEB_URL: ${{ github.event.client_payload.binary.url }}
WANT_SHA: ${{ github.event.client_payload.binary.sha256 }}
SIZE: ${{ github.event.client_payload.binary.size }}
SUBMITTER: ${{ github.event.client_payload.login }}
EMAILS_JSON: ${{ toJSON(github.event.client_payload.emails) }}
PKG: ${{ steps.validate.outputs.pkg }}
Expand Down
7 changes: 4 additions & 3 deletions worker/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,10 @@ async function apiSubmit(request, env) {
version,
architecture: arch,
filename: canonical,
url: asset.browser_download_url,
sha256,
size: buf.byteLength,
// url/sha256/size are nested under one key: repository_dispatch caps
// client_payload at 10 top-level properties, and with `store` we'd
// otherwise hit 12 → GitHub returns HTTP 422.
binary: { url: asset.browser_download_url, sha256, size: buf.byteLength },
source_repo: sourceRepo,
...(store && store.payload ? { store: store.payload } : {}),
},
Expand Down
Loading