{"id":29555426,"url":"https://github.com/cybozu/octoken-action","last_synced_at":"2025-07-18T09:02:26.712Z","repository":{"id":54857357,"uuid":"307292306","full_name":"cybozu/octoken-action","owner":"cybozu","description":"GitHub Action for creating an installation access token for a GitHub App","archived":true,"fork":false,"pushed_at":"2024-03-19T08:50:42.000Z","size":2105,"stargazers_count":20,"open_issues_count":1,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-06-30T14:48:25.313Z","etag":null,"topics":["github-actions","github-apps"],"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/cybozu.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-10-26T07:28:12.000Z","updated_at":"2024-08-06T07:20:16.000Z","dependencies_parsed_at":"2023-02-09T00:16:44.733Z","dependency_job_id":"fe97696c-1beb-426e-8e8c-9002d97b93c9","html_url":"https://github.com/cybozu/octoken-action","commit_stats":{"total_commits":37,"total_committers":3,"mean_commits":"12.333333333333334","dds":0.05405405405405406,"last_synced_commit":"29181f8079ccd583444cba394d5d93aa61d35c5e"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cybozu/octoken-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybozu%2Foctoken-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybozu%2Foctoken-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybozu%2Foctoken-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybozu%2Foctoken-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cybozu","download_url":"https://codeload.github.com/cybozu/octoken-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybozu%2Foctoken-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265688097,"owners_count":23811372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["github-actions","github-apps"],"created_at":"2025-07-18T09:01:41.745Z","updated_at":"2025-07-18T09:02:26.644Z","avatar_url":"https://github.com/cybozu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Octoken\n\n\u003e [!WARNING]\n\u003e **Please note: This action has been archived and should no longer be used. Please, migrate your workflows to the [actions/create-github-app-token](https://github.com/actions/create-github-app-token), which is being actively maintained by the official GitHub organization.**\n\nThis action makes it easy to get a token for your GitHub App.\n\n[![GitHub Actions status](https://github.com/cybozu/octoken-action/workflows/Continuous%20Integration/badge.svg)](https://github.com/cybozu/octoken-action/actions?query=workflow%3A%22Continuous+Integration%22)\n\n## Usage\n\n### Pre-requisites\n\n[Create a GitHub App](https://docs.github.com/en/free-pro-team@latest/developers/apps/creating-a-github-app) and install it on the users or organizations you want to access from within Workflow.\n\nThen, [generate a private key](https://docs.github.com/en/free-pro-team@latest/developers/apps/authenticating-with-github-apps#generating-a-private-key) and save it as is in [encrypted secrets](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets).\n\n### Inputs\n\n- `github_app_id` - ID of the GitHub App used to create the Access Token\n- `github_app_private_key` - A private key of the GitHub App used to create the Access Token (Refers to the value stored in encrypted secrets)\n- `target_account` (Optional) - The target user or organization that you want to access with the token (Default: The owner of the repository in which the Workflow is running)\n\n### Outputs\n\n- `token` - An installation access token created\n\n### Example workflow\n\n```yaml\nname: Using GitHub App token\n\non: push\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: cybozu/octoken-action@v1\n        id: create-iat\n        with:\n          github_app_id: 12345\n          github_app_private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}\n          target_account: cybozu\n\n      - name: Use Installation Access Token\n        env:\n          IAT: ${{ steps.create-iat.outputs.token }}\n        run: |\n          curl --include --fail -H \"Authorization: token ${IAT}\" https://api.github.com/installation/repositories\n```\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcybozu%2Foctoken-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcybozu%2Foctoken-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcybozu%2Foctoken-action/lists"}