Skip to content

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

Description

@DanteJSaavedra

When using gh webhook forward --secret <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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions