Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Apple-Actions/import-codesign-certs
GitHub Action for Importing Code-signing Certificates into a Keychain
https://github.com/Apple-Actions/import-codesign-certs
actions apple github-actions
Last synced: 3 months ago
JSON representation
GitHub Action for Importing Code-signing Certificates into a Keychain
- Host: GitHub
- URL: https://github.com/Apple-Actions/import-codesign-certs
- Owner: Apple-Actions
- License: mit
- Created: 2020-01-20T05:01:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-24T09:17:22.000Z (8 months ago)
- Last Synced: 2024-10-24T15:38:41.093Z (3 months ago)
- Topics: actions, apple, github-actions
- Language: TypeScript
- Size: 676 KB
- Stars: 191
- Watchers: 11
- Forks: 80
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action to import Apple Code-signing Certificates and Keys
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE)
[![PRs welcome!](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)## Getting Started
First, generate your signing certificates in the Xcode preferences. Click on the Accounts tab, select your user account and click Manage Certificates. Click the plus button and add the relevant certificates for the type of app you are developing.
Next, create a .p12 file that combines all of your certificates and private keys using [these instructions](https://calvium.com/how-to-make-a-p12-file/).
Copy the .p12 format in base64:
```sh
base64 -i CertificateFile.p12 | pbcopy
```Paste the output of the above command into a secret called `CERTIFICATES_P12` and the password into `CERTIFICATES_P12_PASSWORD` into the GitHub Actions Secrets in the GitHub settings.
## Usage
```yaml
uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
```## Multiple Certificates
If you need to add multiple certificates, select them all in the keychain when creating your p12 file. You do not need multiple separate steps.
## Additional Arguments
See [action.yml](action.yml) for more details.
## Contributing
We welcome your interest in contributing to this project. Please read the [Contribution Guidelines](CONTRIBUTING.md) for more guidance.
## License
Any contributions made under this project will be governed by the [MIT License](LICENSE).