067f3e0fc1
Signed-off-by: magic_rb <richard@brezak.sk>
15 lines
283 B
Python
15 lines
283 B
Python
from .repo_token import RepoToken
|
|
|
|
|
|
class LegacyToken(RepoToken):
|
|
token: str
|
|
|
|
def __init__(self, token: str) -> None:
|
|
self.token = token
|
|
|
|
def get(self) -> str:
|
|
return self.token
|
|
|
|
def get_as_secret(self) -> str:
|
|
return "%(secret:github-token)"
|