ab180/Org Action
Github action for preparing org-level github token and git checkout using github app secrets
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Sep 25, 2024
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: ab180/org-action@65510f16fe4afe474b461e989ce4ce9d84c16151 # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| app_id | default env.GITHUB_APP_ID | — | — |
| app_private_key | default env.GITHUB_APP_PRIVATE_KEY | — | — |
| app_permission | comma-seperated value, supported: - `contents-ro` : git checkout permission - `contents-rw` : git commit and permission, it contains contents-ro also - `actions-rw` : github actions(workflow) read and execute permission - `checks-rw` : github checks read and write permission - `administration-ro` : github administration read only permission - `pull-requests-rw` : github pull-requests read and write permission - `issues-ro` : github issues read only permission - `issues-rw` : github issues read and write permission | — | contents-ro |
| checkout | multiline-input, formatted "<repository>@<ref>: <checkout path>" repository should exist in same owner of workflow's and able to read with github app token <repository> should be repository name without owner or `<owner>/<name>` `@<ref>` can be omitted and uses `main` branch by default. if repository is same with workflow's and @ref is omitted, it uses github.ref instead. be caution order of the lines, this actions delete path before checkout to avoid conflict. outer path should be defined first and inner path should be defined last. for example, ```yaml with: checkout: ab180/web-server: . ab180/common-lib: ./lib/common-lib ``` | — | "" |
| cwd | current working directory. | — | ${{github.workspace}} |
| add_git_config | add github app token into git config to use when checkout organization repository | — | true |
| action_token | token used when check out itself | — | ${{ github.token }} |
| fetch-depth | number of commits to fetch. 0 indicates all history for all branches and tags. | — | 1 |
Outputs
| name | description |
|---|---|
| token | github app token, it is also exported to environment named as `GITHUB_APP_TOKEN` and can be used in same job |