cli / cli/gh-webhook

forward: allow reading secret from environment variable to prevent argv exposure

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
43
Forks
16
PR merge metrics
No merged PRs in 30d

Description

When using `gh webhook forward --secret `, the secret is passed via the command line arguments (argv). This makes it visible to process listing tools (such as Task Manager on Windows, or `ps` on Linux) and exposes it to other processes running under the same user.

It would be safer to allow passing the webhook secret via an environment variable (e.g. `GH_WEBHOOK_SECRET`) so that it doesn't leak into the process list.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.