Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.67 KB

README.md

File metadata and controls

65 lines (47 loc) · 1.67 KB

nullplatform

Nullplatform Login GitHub Action

Overview

The "Nullplatform Login" GitHub Action automates the login process for Nullplatform, allowing you to securely access Nullplatform services within your workflows. It provides a convenient way to authenticate and obtain an access token for use in subsequent steps.

Table of Contents

Inputs

api-key

  • Description: Nullplatform API key. This should be added as a repository secret named NULLPLATFORM_API_KEY when you create/import an application
  • Required: Yes

Outputs

access-token

  • Description: The Nullplatform access token required on every subsequent nullplatform Github action

Usage

name: Login to Nullplatform with API Key
on:
  push:
    branches:
      - main

jobs:
  login:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@v4
      
    - name: Login to Nullplatform
      id: login
      uses: nullplatform/github-action-login@v1
      with:
        api-key: ${{ secrets.NULLPLATFORM_API_KEY }}
        
    - name: Use Access Token
      run: echo "Access Token ${{ steps.login.outputs.access-token }}"

In this example, the GitHub Action logs in to Nullplatform using the provided API key and retrieves the access token, which can be used in subsequent steps.

License

This GitHub Action is licensed under the MIT License.