Skip to content

Commit

Permalink
GitHub: do not display API token in clear
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Nov 19, 2024
1 parent b700125 commit 5b4709d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Synergy/Reactor/GitHub.pm
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ __PACKAGE__->add_preference(

__PACKAGE__->add_preference(
name => 'api-token',
describer => async sub ($self, $value) { defined $value ? "<redacted>" : '<undef>' },
validator => async sub ($self, $value, @) {
return $value if $value =~ /\A[_A-Za-z0-9]+\z/;
return (undef, "Your API token doesn't look like a GitHub API token to me.")
Expand Down

0 comments on commit 5b4709d

Please sign in to comment.