mroberts a829aa774f
build / build and release (push) Has been cancelled
Replace Drone CI with SHA-pinned Gitea Actions workflow
Ports the build-and-release pipeline from .drone.yml to
.gitea/workflows/release.yaml. Same three amd64 targets, same
release-on-tag trigger.

Actions are pinned to full commit SHAs resolved from gitea.com, the
runner's action resolution host. Its mirror of actions/checkout lags
upstream, so the floating v4 tag there points at a different commit than
github's; only immutable version tags agree across both hosts.

checkout stays on v4 and setup-go on v5 because later majors require a
Node 24 runtime that act_runner images do not generally ship.

Hardening driven by zizmor: workflow-level permissions denied by
default with contents:write scoped to the job that publishes the
release, persist-credentials disabled so the token is not left in
.git/config, and the Go module cache disabled so released binaries
cannot be built from restorable cache state.

Behaviour changes:
- sha1 checksums dropped; gitea-release-action only emits md5 and sha256
- the gitea_public_releases secret is no longer read, as the action
  defaults to the runner-injected repo token
- Go version now comes from go.mod rather than the floating golang image

Also gitignores the usergen build output, which dist/* missed.

Verified: go build, go vet and go test clean; all three cross-compile
targets produce binaries; actionlint and zizmor --offline report no
findings. The release step itself is unverified until a tag is pushed.
2026-07-20 15:04:52 -05:00
2024-02-15 18:55:37 +00:00
2024-02-15 18:55:37 +00:00
2024-02-15 19:44:25 +00:00
2024-02-15 19:44:25 +00:00
2024-02-15 21:57:08 +00:00
2024-02-15 21:52:26 +00:00

Build Status

Usergen - Random Username Generator

Overview

usergen is a simple yet powerful utility written in Go, designed to generate random usernames by combining verbs with nouns in a verb-noun format. It's perfect for creating unique and memorable usernames for a variety of applications. The utility is flexible, allowing users to specify the number of usernames to generate and optionally copy the output directly to the clipboard.

Features

  • Written in Go: Fast and efficient execution.
  • Customizable Output: Control over the number of usernames generated.
  • Clipboard Support: Easy copying of generated usernames to the clipboard for immediate use.
  • Cross-Platform Compatibility: Supports OSX, Windows (tested on Windows 7 but should work on others), and Linux/Unix (requires 'xclip' or 'xsel').

Getting Started

Installation

You can download the provided release for your OS on the releases page

Usage

Run usergen with the following command-line arguments:

  • -n X to specify the number of usernames to generate (where X is the number of usernames).
  • -c to copy the generated usernames to the clipboard.
usergen -n 1 -c

This will generate a random username and copy it to the clipboard

Development

The repository includes a .devcontainer definition for easy development setup using Visual Studio Code's Dev Containers. This allows you to work with a consistent development environment.

License

Distributed under the MIT License. See LICENSE file in the repository for more information.

S
Description
Generate random usernames
Readme MIT
45 KiB
Languages
Go 100%