Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
archive

GitHub Action

Generate UUID

v1.0

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/[email protected]

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

Inputs

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

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/[email protected]
- uses: actions/[email protected]
  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, snd 5 are avaliable



[1]: docs.python.org