Ana içeriğe geç
Bu sayfa henüz Türkçeye çevrilmedi; İngilizce sürümü gösteriliyor.
Versiyon: 0.1

CI Intake

Build pipelines hand the package (IPA, AAB, APK, MSIX, and browser extension packages) to storeasy. storeasy reads it, checks it against the rules catalog and delivers it to a store test channel with the app's delivery rule. Production releases and review submission are never automatic.

Status: built and tested against fake store servers; the App Store Connect build upload (Api mode below) still needs one real build to confirm it.

Ways in​

WayIdentityUse when
GitHub Action Milvasoft/storeasy/tools/upload-action@v0OIDC trusted publisher (no secret) or CI tokenGitHub Actions
Azure DevOps task StoreasyUpload@1Workload identity (OIDC) or CI tokenAzure Pipelines
CLI storeasy uploadCI token, OIDC, or your personal access tokenAny CI, a laptop
EAS webhookHMAC signatureExpo EAS Build tells storeasy a build is ready; storeasy downloads it
Generic webhookHMAC signatureCodemagic, Bitrise and other services that publish a download URL
Web app and MCPYour session or personal access tokenDrag and drop, or the bridge's artifact_upload

Every way ends in the same upload session: the file goes to storage in parts through presigned URLs (resumable), then a store job verifies the SHA-256, reads the package, checks it and delivers it. Every step shows up in live activity and the audit log.

Who may do what​

ActionPermission (default roles)
See packages, sessions, counts, rules and sourcesAny member
Upload with a personal access token, deliver a held packageRelease to test tracks (Editor and above)
CI tokens, trusted publishers, pull sources, delivery rules, intake settingsManage store connections (Admin and Owner)

A CI token or an upload token can only upload to its apps.

Identity​

OIDC trusted publisher (recommended). Add a rule to the app under Intake > Trusted publishers: provider (GitHub, Azure DevOps, GitLab), repository or project, branch (globs such as release/*) and, recommended, an environment whose reviewers become an extra gate. The CI job presents its own short lived OIDC token (audience storeasy); storeasy checks it against the rule and returns a 15 minute upload token (sut_...) for that one app. Nothing is stored in CI.

CI token. For CI without OIDC, Intake > CI tokens creates a token (sci_...) bound to the organization and to chosen apps, with an expiry. It is shown once and stored only as a hash. Keep it in the CI's secret store.

GitHub Actions​

permissions:
contents: read
id-token: write # OIDC token for storeasy; no secret

jobs:
android:
runs-on: ubuntu-latest
environment: play-internal
steps:
- uses: actions/checkout@v4
- run: ./gradlew bundleRelease
- uses: Milvasoft/storeasy/tools/upload-action@v0
with:
url: https://storeasy.example.com # self-hosted instance
app: 3
file: app/build/outputs/bundle/release/app-release.aab
wait: true # fail the job if the package is rejected or the store refuses it

@v0 follows the latest 0.x release; pin a release tag or a commit SHA for stricter control. Inputs, outputs and the CI token variant: upload-action README.

Azure Pipelines​

- task: StoreasyUpload@1
inputs:
connectedService: my-storeasy-connection # Azure Resource Manager connection with workload identity federation
url: https://storeasy.example.com
appId: 1
file: $(Pipeline.Workspace)/ipa/MyApp.ipa
wait: true

Setup of the service connection and the trusted publisher rule: azure-devops-task README.

CLI​

npm install -g storeasy
STOREASY_URL=https://storeasy.example.com STOREASY_TOKEN=<CI token from a secret> \
storeasy upload app-release.aab --app 3 --wait

In GitHub Actions (with id-token: write) and Azure Pipelines the CLI uses OIDC on its own when STOREASY_TOKEN is empty. Exit codes: 0 delivered, held or duplicate, 1 usage or network error, 2 package rejected, 3 identity, 4 store error, 5 wait timed out. Full reference: CLI README.

EAS Build webhook​

  1. In storeasy, Intake > Sources > Add > EAS: pick the app and keep the allowed download domains (expo.dev, *.expo.dev, storage.googleapis.com). storeasy shows the source URL and a secret, once.
  2. Register it with EAS:
    eas webhook:create --event BUILD --url https://storeasy.example.com/api/webhooks/eas/<sourceId> --secret <secret>

When a build finishes, EAS calls storeasy; storeasy checks the signature, downloads the build over HTTPS only from the allowed domains and continues like an upload.

Generic webhook​

For services that publish a download URL. Intake > Sources > Add > Webhook gives a URL (/api/webhooks/artifacts/{sourceId}), a secret and the allowed download domains. The service sends storeasy's payload (storeasy.artifact-ready/v1) with at least the download URL and the file's sha256, signed with:

  • X-Storeasy-Timestamp: Unix time of the call; older than 5 minutes is refused;
  • X-Storeasy-Signature: sha256=<hex>: HMAC-SHA256 with the source secret over <timestamp>.<raw body>.

A downloaded file whose SHA-256 differs from the declared one is rejected.

Checks​

Before anything reaches a store, storeasy checks:

  • the package identifier matches the app (bundle id, package name, MSIX identity);
  • Android: target API level from the rules catalog, a version code higher than any seen before, the upload key signature;
  • Apple: Xcode, SDK and deployment target minimums from the rules catalog, a build number not used before, a distribution signature, export compliance.

A failed check rejects the package. A warning passes, and the delivery rule decides whether it holds the package.

Delivery rules​

Each app has one delivery rule per platform: on or off, a target (test channels only), what to do on a check warning (Hold, the default, or Deliver) and, for a Play track, an optional staged rollout fraction.

PlatformTargetWhat storeasy does
iOSAn internal TestFlight groupUploads the IPA to App Store Connect (or waits for it), waits for Apple's processing, then adds the build to the group.
AndroidA Play testing track (internal, alpha, beta or a closed track)Uploads the App Bundle and releases it on the track.
WindowsThe app's draft submission or a package flightAdds the MSIX package to a draft submission. The draft is not sent to certification.

An upload can override the target for itself, but only with test channels. The same file again (same SHA-256) is recorded as a duplicate and not delivered twice.

Held packages​

A package that passed its checks stops in Held instead of being delivered when the app has no (enabled) delivery rule for the platform, the checks passed with warnings and the rule says Hold, it is an APK, or the upload asked to be held for confirmation (the web app's manual upload always does). A member with Release to test tracks delivers a held package by hand in the web app or with the MCP tool artifacts_deliver_held.

Packages are kept for the organization's retention (1 to 365 days, default 30); the largest package accepted is 4 GiB unless the organization sets a lower limit. While a package is kept, the build it became has a Download link.

Apple upload modes​

The instance setting STOREASY_APPLE_UPLOAD_MODE decides how an IPA reaches App Store Connect:

ModeWhat happens
Api (default)storeasy uploads the IPA itself with the App Store Connect build upload API, then follows the upload until the build exists.
ExternalThe CI uploads to Apple itself (EAS Submit, Xcode Cloud, Transporter). storeasy still receives the IPA, runs the checks, uploads nothing, waits until the build appears in App Store Connect, then applies the delivery rule.

External is the fallback while the Api path has not been confirmed with a real build.

Never automatic​

  • Releasing to a Play production track or a staged production rollout.
  • Submitting an App Store version for review, or releasing it.
  • Adding a build to an external TestFlight group (beta review).
  • Sending a Microsoft Store submission to certification or publishing it.

These stay behind the matching permission (Admin and Owner by default) and a typed confirmation, in the web app or through MCP.