Skip to content
archive

GitHub Action

Generate UUID

v1.1 Latest version

Generate UUID

archive

Generate UUID

Generates a UUID using the uuid module in python

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Generate UUID

uses: bossOfCode/generate-uuid@v1.1

Learn more about this action in bossOfCode/generate-uuid

Choose a version

Generate UUID

Generates a random UUID using the uuid module in python.

test test2 test for v1.1

Inputs

  • version - REQIURED - Version of UUID to generate. Versions are 1, 3, 4, 5, and 7.

Note: Version 1 may pose a safety risk because it uses your network info.

  • namespace - optional - namespace of the UUID. Can be DNS, URL, OID, or X500.

  • name - optional - string that will be used to create the UUID.

Outputs

  • uuid - The generated UUID
  • safe - The safeness of the UUID. safe means the UUID was generated by the platform in a multiprocessing-safe way, unsafe means the UUID was not generated in a multiprocessing-safe way, and unknown means the platform did not provide information on whether the UUID was generated safely or not. Source: [1]

Usage

- uses: actions/checkout@v4.1.7
- uses: actions/setup-python@v5.1.1
  with:
    python-version: 3.12.5 #any version above 3.9 will do
- uses: bossOfCode/generate-uuid@v1 #Use current version
  with: 
    - version: 5 #v1, 3, 4, 5, and 7 are avaliable