Install verified shoutx releases in GitHub Actions or Azure Pipelines.
The action is available as v0.2.0.
Pin the published action commit, CLI version and checksum manifest independently:
permissions:
contents: read
steps:
- uses: send/setup-shoutx@4d56952710c9e225285e0474b381d6a10f4d3fdd # v0.2.0
with:
shoutx-version: '2.0.0'
checksums-sha256: b366c56f14818e856939742c807889af882d881b5fa0ef6ed60ffd63eb3c6553
github-token: ${{ github.token }}
- run: shoutx --versionCLI and action versions are independent. The digest above pins the
SHA256SUMS manifest for shoutx v2.0.0; update it when selecting another CLI
release. Run setup before untrusted steps.
shoutx-version is required and must be an exact canonical version without
v, whitespace, build metadata, ranges, or aliases. Releases before
0.3.0-rc.1 are unsupported. checksums-sha256 optionally adds a trusted
workflow-local constraint on the entire checksum manifest; use lowercase hex.
github-token is optional and only sent on initial fixed-origin API requests.
Without it, unauthenticated API rate limits can cause installation failure.
The optional provider input selects the CLI to
install: github-actions (default) or azure-pipelines. Both choices run the installer inside
GitHub Actions. Published CLI versions through 1.0.0 have only a GitHub Actions
binary; selecting Azure for one of those versions fails before downloading.
Later CLI versions use the provider-specific release archives.
On success, the action sets the version output and adds a fresh installation
directory to PATH for subsequent steps. It requires existing absolute
GITHUB_PATH and GITHUB_OUTPUT files. Nothing is printed on success; failure
prints a fixed diagnostic to stderr and exits nonzero.
The native GitHub-hosted matrix covers Linux x86-64/ARM64, macOS x86-64/ARM64, and Windows x86-64. The action uses the runner's Node 24 runtime. Container jobs, self-hosted runners, GHES, ARC, proxies, and other architectures have no support guarantee. Windows runner paths must be drive-absolute; UNC and device paths are deliberately outside this installer's supported subset.
Successful installation does not expand the CLI's destination-specific support scope. For mask and annotation commands, consult shoutx's current compatibility record.
The installer checks repository identity, immutable release metadata, API
asset digests, the checksum manifest, the archive, and exact --version output.
It does not verify artifact attestations. No persistent cache or runtime npm
installation is used. See the security contract for limits
and failure behavior.
Use the external steps template with a GitHub service connection that can read
send/setup-shoutx. Pin the repository resource to a reviewed commit containing
the template. The alias setupShoutx is also used to check out the installer's
scripts. This example works with a published CLI on an Azure-hosted agent:
pool:
vmImage: ubuntu-24.04
resources:
repositories:
- repository: setupShoutx
type: github
endpoint: YOUR_GITHUB_SERVICE_CONNECTION
name: send/setup-shoutx
ref: 4d56952710c9e225285e0474b381d6a10f4d3fdd # v0.2.0
steps:
- checkout: self
- template: /azure-pipelines.yml@setupShoutx
parameters:
shoutxVersion: '2.0.0'
checksumsSha256: b366c56f14818e856939742c807889af882d881b5fa0ef6ed60ffd63eb3c6553
- pwsh: shoutx --versionThe template defaults to the Azure Pipelines binary.
For authenticated GitHub metadata requests, pass a secret variable reference
such as githubToken: $(setupGithubToken). The repository service connection
is used for checkout, independently of this optional download credential.
The template checks out its pinned resource to $(Pipeline.Workspace)/setup-shoutx-tools
and selects Node 24 using UseNode@1. Include an explicit checkout: self
if the job uses your own source. With multiple checkouts, use an explicit
checkout path if later steps depend on the location of your source. The CLI
is installed under the agent temp directory and added to PATH for subsequent
steps in the same job.
Use Node 24 (the exact CI version is in .node-version). There are no npm
dependencies, including build dependencies.
npm ci --ignore-scripts
npm run build
npm run check
npm run lint
npm testbuild deterministically wraps the four production modules into
dist/bundle.cjs and copies the minimal launcher to dist/index.cjs. Tests
import those same modules; only HTTP transport is substituted in hostile
network tests. The action entry point always uses the fixed production client.
CI compares generated files byte-for-byte, checks syntax, runs adversarial
tests and CodeQL, and installs a real digest-pinned CLI release on all five
native runners. See release procedure.
The accepted setup action design defines the cross-repository security constraints. The CLI repository owns the release artifact contract.