Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate Github access tokens #35

Open
simon-isler opened this issue Dec 10, 2024 · 1 comment
Open

Validate Github access tokens #35

simon-isler opened this issue Dec 10, 2024 · 1 comment
Assignees

Comments

@simon-isler
Copy link
Member

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.

@CuddlyBunion341
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants