Skip to content

Conversation

@meikomeik
Copy link

Add support for read only token that can only perform GET requests.
This is helpful for listing packages available for deployment

@meikomeik meikomeik requested a review from Woellchen January 21, 2021 13:53
}

func validateToken(lg *log.Logger, config *Config, token string, repos []string) error {
func validateToken(lg *log.Logger, config *Config, token string, repos []string, method string) error {
Copy link

@Felixoid Felixoid Jan 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, pass here Request r, and not its attributes like method and token?

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

Successfully merging this pull request may close these issues.

3 participants