The new Cloudsmith command-line interface (CLI) GitHub Action is now available! This action simplifies your CI/CD workflows by automating the Cloudsmith CLI's setup and authentication process. With support for pre-authenticating with OpenID Connect (OIDC), you can securely authenticate without the need to manage API keys.
Easy installation and seamless integration 🌟: Quickly set up the Cloudsmith CLI in your workflows.
More automation, less code 🙌 : No more manual installations or complex setup processes. Add the action to your workflow, and the CLI will be ready to use.
Secure OIDC authentication 🛡: Authenticate without managing long-lived API keys.
Flexible API Key support: Use API keys if preferred or required for your use case.
Customizable inputs: You can customize key inputs, such as the CLI version, OIDC namespace, service slug, and more. This level of customization ensures that the action fits seamlessly into your existing workflows.
name: Install Cloudsmith CLI with OIDC
on: [push]
permissions:
id-token: write
jobs:
install-cloudsmith-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Cloudsmith CLI
uses: cloudsmith-io/cloudsmith-cli-action@v1.0.0
with:
oidc-namespace: 'your-oidc-namespace'
oidc-service-slug: 'your-service-account-slug'
- name: Verify Cloudsmith CLI Installation
run: |
cloudsmith --version
To get started, check out Cloudsmith's CLI GitHub repository and integrate the action into a new or existing workflow.
Our blog post, Announcing the Release of the Cloudsmith CLI Github Action, goes into more detail.
Happy automating! 🚀