Skip to content

Generate API Key

Actions
A GitHub Action to generate an API key
v1.1
Latest
Star (9)

generate-api-key

This project provides a GitHub Action to generate a secure API key.


Features

  • Generate a secure API key
  • Mask the key in the logs
  • Set the key as an output

Requirements

  • Python 3.11+
  • secrets library

Usage

- name: Generate API Key
  uses: <your_github_handle>/generate-api-key@v1.0
  with:
    KEY_LENGTH: <length_of_the_key>

where

KEY_LENGTH is the length of the API key to be generated. Optional. Defaults to 32.

To view the generated key, you can access the output from the previous step or job.


References

  1. GitHub Actions Documentation
  2. Python secrets Library

Custom Badge

Generate API Key is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A GitHub Action to generate an API key
v1.1
Latest

Generate API Key is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.