{"id":21660092,"url":"https://github.com/android-actions/setup-android","last_synced_at":"2026-04-02T12:22:45.797Z","repository":{"id":37958884,"uuid":"286780795","full_name":"android-actions/setup-android","owner":"android-actions","description":"Android SDK setup for GitHub Actions","archived":false,"fork":false,"pushed_at":"2026-03-24T23:16:54.000Z","size":1733,"stargazers_count":266,"open_issues_count":17,"forks_count":85,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-03-26T04:44:28.174Z","etag":null,"topics":["android-sdk","sdkmanager","setup-android"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/android-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-11T15:30:09.000Z","updated_at":"2026-03-24T22:55:36.000Z","dependencies_parsed_at":"2023-01-04T13:07:07.255Z","dependency_job_id":"c4a023f7-616e-4928-9be5-9ac33a63a65e","html_url":"https://github.com/android-actions/setup-android","commit_stats":{"total_commits":214,"total_committers":14,"mean_commits":"15.285714285714286","dds":0.6495327102803738,"last_synced_commit":"9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/android-actions/setup-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-actions%2Fsetup-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-actions%2Fsetup-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-actions%2Fsetup-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-actions%2Fsetup-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android-actions","download_url":"https://codeload.github.com/android-actions/setup-android/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android-actions%2Fsetup-android/sbom","scorecard":{"id":194657,"data":{"date":"2025-08-11","repo":{"name":"github.com/android-actions/setup-android","commit":"9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/build-test.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/run.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-test.yml:111: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/build-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/run.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/run.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/android-actions/setup-android/run.yml/main?enable=pin","Info:   0 out of  17 GitHub-owned GitHubAction dependencies pinned","Info:   5 out of   5 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T21:35:53.140Z","repository_id":37958884,"created_at":"2025-08-16T21:35:53.140Z","updated_at":"2025-08-16T21:35:53.140Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31280117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T06:57:45.811Z","status":"ssl_error","status_checked_at":"2026-04-01T06:57:42.389Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-sdk","sdkmanager","setup-android"],"created_at":"2024-11-25T09:32:11.416Z","updated_at":"2026-04-02T12:22:45.790Z","avatar_url":"https://github.com/android-actions.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","📖 Category Details"],"sub_categories":["**3. Mobile App Development**"],"readme":"# setup-android\n\n![Build \u0026 Test](https://github.com/android-actions/setup-android/workflows/Build%20\u0026%20Test/badge.svg)\n\nThis action sets up the Android SDK tools by:\n - Downloading the SDK commandline tools, if the current version (16.0) is not found in either `$ANDROID_SDK_ROOT` or `$HOME/.android/sdk`.\n - Accepting the SDK licenses.\n - Installing `tools` and `platform-tools`.\n - Adding `platform-tools` (contains adb) and `cmdline-tools/16.0/bin` (contains sdkmanager) to `$PATH`.\n - Setting up problem [matchers](/matchers.json).\n\nOn Windows 2016 runners, this action also checks if `$ANDROID_SDK_ROOT` path contains spaces.\nIf it does - it moves SDK to a path without spaces. This is needed because spaces are highly problematic:\n```\nC:\\windows\\system32\\cmd.exe /D /S /C \"\"C:\\Program Files (x86)\\Android\\android-sdk\\cmdline-tools\\3.0\\bin\\sdkmanager.bat\" --licenses\"\nError: Could not find or load main class Files\n```\n\n# Usage\n\nSee [action.yml](action.yml)\n\n## Basic\n```yaml\nsteps:\n- uses: actions/checkout@v4\n\n- name: Set up JDK 17\n  uses: actions/setup-java@v4\n  with:\n    java-version: '17'\n    distribution: 'temurin'\n\n- name: Setup Android SDK\n  uses: android-actions/setup-android@v3\n\n- name: Build SampleApplication\n  run: ./gradlew --no-daemon build\n```\n\n## Additional packages\nInput parameter `packages` controls which packages this action will install from Android SDK.\n\nDefault value is `tools platform-tools`, supply an empty string to skip installing additional packages.\n\nAdditional packages can be installed at a later time by calling sdkmanager manually.\n\n```yaml\n- name: Setup Android SDK\n  uses: android-actions/setup-android@v3\n  with:\n    packages: ''\n\n# ...\n\n- run: sdkmanager tools platform-tools\n```\n\n## SDK Version selection\n\nCommand line tools are versioned using two variables - short and long.\nLong one is the build number, used in the zip URL, short one is the human friendly version name.\n\nBy default, setup-android installs version 14742923 (short version 20.0).\n\nTo install a different version, call setup-android with desired long version as the input parameter `cmdline-tools-version`:\n```yaml\n- name: Setup Android SDK\n  uses: android-actions/setup-android@v3\n  with:\n    cmdline-tools-version: 8512546\n```\n\n#### Version table\n| Short version | Long version |\n|---------------| --- |\n| 20.0          | 14742923 |\n| 16.0          | 12266719 |\n| 13.0          | 11479570 |\n| 12.0          | 11076708 |\n| 11.0          | 10406996 |\n| 10.0          | 9862592 |\n| 9.0           | 9477386 |\n| 8.0           | 9123335 |\n| 7.0           | 8512546 |\n\nCurrent cmdline tools version can be found at https://developer.android.com/studio#command-line-tools-only\n\n\n# Android SDK Licenses\n\nAndroid SDK is not public domain software, it comes with a license.\n\nInput parameter `accept-android-sdk-licenses` decides if Android SDK licenses should be agreed to on behalf of the user of this action.\nDefault option is 'yes', because otherwise SDK is unusable until said licenses are agreed to.\n\nlicenses are quite long, to prevent a wall of text in the action output, licenses can be agreed to silently.\nInput parameter `log-accepted-android-sdk-licenses` controls whether license texts should be printed or omitted from the text output. Defaults to 'true'.\n\n# Thanks\nBased on the project [android-problem-matchers-action](https://github.com/jonasb/android-problem-matchers-action) from [@jonasb](https://github.com/jonasb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid-actions%2Fsetup-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid-actions%2Fsetup-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid-actions%2Fsetup-android/lists"}