{"id":51307677,"url":"https://github.com/block/apple-codesign-action","last_synced_at":"2026-07-01T01:03:26.999Z","repository":{"id":345409068,"uuid":"1185642659","full_name":"block/apple-codesign-action","owner":"block","description":"A GitHub action for code-signing Block open source software for Apple platforms","archived":false,"fork":false,"pushed_at":"2026-03-20T18:43:11.000Z","size":22,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T20:31:00.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/block.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":"CODEOWNERS","security":null,"support":null,"governance":"GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-18T19:52:32.000Z","updated_at":"2026-03-20T18:42:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/block/apple-codesign-action","commit_stats":null,"previous_names":["block/apple-codesign-action"],"tags_count":2,"template":false,"template_full_name":"block/oss-project-template","purl":"pkg:github/block/apple-codesign-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fapple-codesign-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fapple-codesign-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fapple-codesign-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fapple-codesign-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/block","download_url":"https://codeload.github.com/block/apple-codesign-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block%2Fapple-codesign-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34904914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-07-01T01:03:26.311Z","updated_at":"2026-07-01T01:03:26.986Z","avatar_url":"https://github.com/block.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apple Code Signing Action\n\nReusable GitHub Action for signing Apple applications via Block's internal codesigning service (`codesign_helper` Lambda + Buildkite).\n\n## Setup\n\nReach out to **#mdx-ios** on Slack to get codesigning configured for your repo. They will provision the required infrastructure and set up two repository secrets:\n\n| Secret | Description |\n|---|---|\n| `OSX_CODESIGN_ROLE` | IAM role ARN for OIDC authentication with AWS |\n| `CODESIGN_S3_BUCKET` | S3 bucket for artifact transfer |\n\n## Usage\n\nThe calling job must have `id-token: write` permission for OIDC authentication with AWS.\n\n```yaml\n# Example workflow — replace the build and release steps with your own\nname: Build and Release\non:\n  push:\n    tags: ['v*']\n\njobs:\n  release:\n    runs-on: macos-latest\n    permissions:\n      contents: write\n      id-token: write # Required — the action uses OIDC to authenticate with AWS\n    steps:\n      # ...\n      # Your build step — produces an unsigned .app or .zip\n      # ...\n\n      # apple-codesign-action — signs and notarizes the artifact\n      # Sign a .app or .zip\n      - name: Codesign and Notarize\n        id: codesign\n        uses: block/apple-codesign-action@XXX # use the latest version ref\n        with:\n          osx-codesign-role: ${{ secrets.OSX_CODESIGN_ROLE }}\n          codesign-s3-bucket: ${{ secrets.CODESIGN_S3_BUCKET }}\n          unsigned-artifact-path: \u003cpath-to-unsigned-artifact\u003e # .app, .zip, or .dmg\n          entitlements-plist-path: \u003cpath-to-entitlements\u003e     # Optional\n\n      # Use the signed artifact in subsequent steps\n      # steps.codesign.outputs.signed-artifact-path  — signed .app (always set)\n      # steps.codesign.outputs.signed-dmg-path       — signed DMG (only when input was .dmg)\n      # ...\n```\n\nSee [apple-codesign-action-example](https://github.com/block/apple-codesign-action-example) for runnable end-to-end examples (`.app`, `.zip`, `.dmg`, Electron, Xcode).\n\n## Inputs\n\n| Input | Required | Default | Description |\n|---|---|---|---|\n| `osx-codesign-role` | **yes** | — | `${{ secrets.OSX_CODESIGN_ROLE }}` |\n| `codesign-s3-bucket` | **yes** | — | `${{ secrets.CODESIGN_S3_BUCKET }}` |\n| `unsigned-artifact-path` | **yes** | — | Local path to unsigned artifact (`.app`, `.zip` containing a `.app`, or `.dmg` containing a `.app`) |\n| `entitlements-plist-path` | no | `''` | Path to entitlements plist to bundle into the signing payload |\n| `artifact-name` | no | `$GITHUB_SHA-$GITHUB_RUN_ID` | Unique S3 key suffix |\n| `branch` | no | `main` | Branch override for the signing pipeline (only honored for approved repos) |\n\n## Outputs\n\n| Output | Description |\n|---|---|\n| `signed-artifact-path` | Local path to the downloaded signed artifact (`.app` inside a `.zip`) |\n| `signed-dmg-path` | Local path to the DMG with signed `.app` swapped in (only set when input was a `.dmg`) |\n| `build-number` | Build number from the signing service |\n| `signing-duration` | Wall-clock seconds the signing took |\n\n## Project Resources\n\n| Resource                                   | Description                                                                    |\n| ------------------------------------------ | ------------------------------------------------------------------------------ |\n| [CODEOWNERS](./CODEOWNERS)                 | Outlines the project lead(s)                                                   |\n| [GOVERNANCE.md](./GOVERNANCE.md)           | Project governance                                                             |\n| [LICENSE](./LICENSE)                        | Apache License, Version 2.0                                                    |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock%2Fapple-codesign-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblock%2Fapple-codesign-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock%2Fapple-codesign-action/lists"}