Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rennf93/generate-api-key
- Owner: rennf93
- License: mit
- Created: 2024-07-03T23:07:05.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-11-17T13:10:17.000Z (2 months ago)
- Last Synced: 2024-11-24T20:45:49.372Z (2 months ago)
- Topics: security-tools
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
---
## References1. [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)