Skip to content

Validate Github access tokens #35

Description

@sislr

Currently, the plugin does not check whether the passed Github PAT is still valid or not. I think it would make sense to add a check in

gnosis/init.rb

Lines 6 to 11 in 4406783

def check_env
ENV['GITHUB_WEBHOOK_SECRET'].present? ||
ENV['GITHUB_ACCESS_TOKEN'].present? ||
ENV['SEMAPHORE_WEBHOOK_SECRET'].present? ||
ENV['GITHUB_ORGANIZATION_NAME'].present?
end
and abort if it can't be used to authorize.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions