freckle/Platform setup

Install and configure PlatformCLI and Stackctl

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 10, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: freckle/setup-platform-action@5d1466d1f6c1eb29382f2139d93023dc19838ffe # v7.10.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
versionThe version of PlatformCLI to install. Do not include the `v` prefix here. The default is to lookup the latest release. We recommend using this default, along with specifying a `required_version` constraint (such as `=~ 3`) in your `.platform.yaml`. no
tokenA GitHub access token with rights to fetch the private PlatformCLI release artifacts. Either this or `github-app-{id,private-key}` must be given. no
github-app-idProvide this (and `github-private-key`) instead of `token` to generate and use one from the identified App. no
github-private-keyProvide this (and `github-app-id`) instead of `token` to generate and use one from the identified App. no
github-app-private-keyDeprecated, use github-private-keyno
app-directoryIf present, this will be set as `PLATFORM_APP_DIRECTORY` for the remainder of the workflow. For details on what this affects, see `platform(1)`. ""
environmentIf present, this will be set as `PLATFORM_ENVIRONMENT` for the remainder of the workflow. For details on what this affects, see `platform(1)`. no
resourceIf present, this will be set as `PLATFORM_RESOURCE` for the remainder of the workflow. For details on what this affects, see `platform(1)`. no
no-validateIf present, this will be set as `PLATFORM_NO_VALIDATE` for the remainder of the workflow. For details on what this affects, see `platform(1)`. no
stackctl-versionThe version of Stackctl to install. Do not include the `v` prefix here. The default is to lookup the latest release. no
stackctl-directoryValue to set as STACKCTL_DIRECTORY.platform/specs
stackctl-filterValue to set as STACKCTL_FILTERno
fetch-platform-yamlAutomatically fetch `.platform.yaml` via GitHub API if not present. This can be useful to avoid a checkout if all your Job needs is this file. This will always use `github.token`, regardless of our own `token` input. true
namedescription
tagA consistent, source-specific value that should be used throughout build/push/deploy actions. It's currently the head sha for `pull_request` events, the "after" sha for `push` events, and `github.sha` for all other events
cachePath to the `.platform/cache` directory, for which we've setup an `actions/cache` step. This output is only useful if in a multi-app repository.