Skip to content

Usage and outputs for the Aembit GitHub Action. Content syncs from the GitHub repository at build time.

Usage

- uses: Aembit/get-credentials@v1
id: step-id # This is required as output of this step is passed to the next step(s).
with:
# Aembit Edge SDK Client ID.
# The unique identifier for your GitHub Trust Provider in Aembit.
# You can find it by logging into your Aembit tenant, navigating to Trust Providers, selecting your GitHub Trust Provider, and copying the Edge SDK Client ID.
# This is a required field.
client-id: ''
# Specifies the type of credential to retrieve from Aembit.
# Valid values are: ApiKey, UsernamePassword, OAuthToken, GoogleWorkloadIdentityFederation, AwsStsFederation
# This is a required field.
credential-type: ''
# Server Workload - Service Endpoint Host
# Used to access server workload which in turn is used to access credentials.
# You can find it by logging into your Aembit tenant, navigating to Server Workloads, selecting your desired Server Workload, and copying the Service Endpoint Host.
server-host: ''
# Server Workload - Service Endpoint Port
# Used to access server workload which in turn is used to access credentials.
# You can find it by logging into your Aembit tenant, navigating to Server Workloads, selecting your desired Server Workload, and copying the Service Endpoint Port.
# Default: 443
server-port: 443

Outputs

The outputs available depend on the credential-type specified:

ApiKey

outputs:
# API key credential
# Usage: ${{ steps.step-id.outputs.api-key }}
api-key: '****'

UsernamePassword

outputs:
# Username credential
# Usage: ${{ steps.step-id.outputs.username }}
username: '****'
# Password credential
# Usage: ${{ steps.step-id.outputs.password }}
password: '****'

OAuthToken

outputs:
# OAuth token credential
# Usage: ${{ steps.step-id.outputs.token }}
token: '****'

GoogleWorkloadIdentityFederation

outputs:
# Google Workload Identity Federation token
# Usage: ${{ steps.step-id.outputs.token }}
token: '****'

AwsStsFederation

outputs:
# AWS Access Key ID
# Usage: ${{ steps.step-id.outputs.aws-access-key-id }}
aws-access-key-id: '****'
# AWS Secret Access Key
# Usage: ${{ steps.step-id.outputs.aws-secret-access-key }}
aws-secret-access-key: '****'
# AWS Session Token
# Usage: ${{ steps.step-id.outputs.aws-session-token }}
aws-session-token: '****'