Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rennf93/generate-api-key

This Action generates a secure API key.
https://github.com/rennf93/generate-api-key

security-tools

Last synced: 11 days ago
JSON representation

This Action generates a secure API key.

Awesome Lists containing this project

README

        

# 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

```yaml
- name: Generate API Key
uses: /[email protected]
with:
KEY_LENGTH:
```

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](https://docs.github.com/en/actions)
2. [Python `secrets` Library](https://docs.python.org/3/library/secrets.html)

![Custom Badge](https://rennf93.github.io/project-assets/images/rf-icon.png)