Official Bitrise Step for installing and running
asc, the App Store
Connect CLI.
setup-asc
- Install
ascfrom GitHub Releases (latestor pinned versions) - Verify release checksum before installing
- Run
asccommands in the same step when needed - Export common
ASC_*auth variables for CI execution - Works in Linux and macOS Bitrise environments
mode=install- installs
asconly - exports
ASC_CLI_PATHandASC_CLI_VERSION
- installs
mode=run- installs
asc, optionally exports auth/runtimeASC_*environment variables, and runs the provided command - exports
ASC_COMMAND_EXIT_CODE
- installs
Install only:
workflows:
primary:
steps:
- setup-asc:
inputs:
- mode: install
- version: latest
- script:
inputs:
- content: |-
#!/usr/bin/env bash
set -euo pipefail
"${ASC_CLI_PATH}" --helpInstall and run:
workflows:
primary:
steps:
- setup-asc:
inputs:
- mode: run
- version: latest
- command: asc --helpRun with App Store Connect auth:
workflows:
primary:
steps:
- setup-asc:
inputs:
- mode: run
- version: latest
- key_id: $ASC_KEY_ID
- issuer_id: $ASC_ISSUER_ID
- private_key_b64: $ASC_PRIVATE_KEY_B64
- bypass_keychain: "yes"
- command: asc apps list --output json- Store credentials in Bitrise Secret Env Vars
- Sensitive inputs are marked as
is_sensitiveinstep.yml - Prefer
private_key_pathorprivate_key_b64over inline private key content
- asc CLI repository: https://github.com/rudrankriyam/App-Store-Connect-CLI
- asc docs: https://asccli.sh/
- Bitrise Step docs: https://docs.bitrise.io/en/steps-and-workflows/introduction-to-steps.html
stepman audit --step-yml ./step.yml
bitrise run audit-this-step
bitrise run test-install
bitrise run test-run-help