Skip to content

meshcloud/actions-meshstack-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meshStack Auth Action

This GitHub Action authenticates to the meshStack API to enable building block automation workflows as well as other API interactions with meshStack.

Overview

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.

Related Actions

This action is part of a suite of GitHub Actions for meshStack building block automation:

Documentation

For more information about meshStack building blocks and GitHub Actions integration, refer to:

Inputs

  • base_url (required): meshStack API endpoint.
  • client_id (required): The client ID for the API.
  • key_secret (required): The key secret for the API.

Outputs

  • token_file: Path to the file containing the authentication token

Example Usage

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 }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors