busbar-actions/Busbar — gh-env-scratch-ensure
Inspect a stable scratch GitHub Environment slot and report whether it is ready for reuse.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| environment-name | GitHub Environment name. Defaults to the stable named slot `scratch`. | no | scratch |
| repository | Target repository in owner/repo form. Empty = current repository. | no | "" |
| required-variables | Comma-delimited (non-secret) Environment Variable names that must be present for the slot to be considered reusable. | no | SF_INSTANCE_URL,SF_USERNAME,SF_LOGIN_URL,SF_SCRATCH_ORG_ID,SF_SCRATCH_ORG_INFO_ID |
| fail-if-not-ready | If true, fail when the environment is absent or missing any required variable names. | no | false |
| github-app-id | GitHub App id (REQUIRED). The App mints a least-privilege installation token for the target repo. | yes | — |
| github-app-private-key | GitHub App private key PEM (REQUIRED). Provide via a secret. | yes | — |
| version | Release tag of the gh-env-scratch-ensure binary. Falls back to env.BUSBAR_ACTION_VERSION, then "latest". | no | "" |
| binary-repo | GitHub repo hosting prebuilt binary releases. Falls back to env.BUSBAR_ACTION_REPO, then busbar-actions/actions-dist. | no | "" |
Outputs
| name | description |
|---|---|
| environment_name | The GitHub Environment name that was inspected. |
| repository | The repository that was inspected. |
| environment_exists | Whether the environment exists. |
| slot_ready | Whether all required variable names are present in the environment. |
| missing_variables | Comma-delimited required variable names that were missing. |