Skip to content

rennf93/generate-api-key

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

This Action generates a secure API key.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •