This GitHub Action authenticates to the meshStack API to enable building block automation workflows as well as other API interactions with meshStack.
This action helps you obtain an access token using client credentials, which can then be used to interact with the meshStack API securely. This action simplifies the process of obtaining and managing authentication tokens for your workflows.
This action is part of a suite of GitHub Actions for meshStack building block automation:
- actions-meshstack-auth (this action) - Authenticates to the meshStack API
- actions-register-source - Registers building block sources and steps with meshStack
- actions-send-status - Sends building block step status updates to meshStack
For more information about meshStack building blocks and GitHub Actions integration, refer to:
base_url(required): meshStack API endpoint.client_id(required): The client ID for the API.key_secret(required): The key secret for the API.
token_file: Path to the file containing the authentication token
name: Deploy Building Block
on:
workflow_dispatch:
inputs:
buildingBlockRunUrl:
description: "URL to fetch the Building Block Run Object from"
required: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup meshStack auth
id: setup-meshstack-auth
uses: meshcloud/actions-meshstack-auth@v2
with:
base_url: ${{ vars.MESHSTACK_BASE_URL }}
client_id: ${{ vars.MESHSTACK_API_CLIENT_ID }}
key_secret: ${{ secrets.MESHSTACK_API_KEY_SECRET }}