• Home
  • Raw
  • Download

Lines Matching +full:timeout +full:- +full:minutes

2 # Copyright © 2020 - 2022 Collabora Ltd.
8 # SPDX-License-Identifier: MIT
21 # Known GitLab token prefixes: https://docs.gitlab.com/ee/security/token_overview.html#token-prefix…
23 "Personal access token": "glpat-",
24 "OAuth Application Secret": "gloas-",
25 "Deploy token": "gldt-",
26 "Runner authentication token": "glrt-",
27 "CI/CD Job token": "glcbt-",
28 "Trigger token": "glptt-",
29 "Feed token": "glft-",
30 "Incoming mail token": "glimt-",
31 "GitLab Agent for Kubernetes token": "glagent-",
32 "SCIM Tokens": "glsoat-",
45 minutes, seconds = divmod(rem, 60)
47 return f"{hours:0.0f}h{minutes:02.0f}m{seconds:02.0f}s"
48 if minutes:
49 return f"{minutes:0.0f}m{seconds:02.0f}s"
53 def get_gitlab_pipeline_from_url(gl, pipeline_url) -> tuple:
60 pattern = rf"^{re.escape(GITLAB_URL)}/(.*)/-/pipelines/([0-9]+)$"
81 def get_token_from_default_dir() -> str:
91 token_file = TOKEN_DIR / "gitlab-token"
101 def validate_gitlab_token(token: str) -> bool:
114 …# https://gitlab.com/gitlab-org/gitlab/-/blob/master/gems/gitlab-secret_detection/lib/gitleaks.toml
115 if not re.match(r"(\w+-)?[0-9a-zA-Z_\-]{20,64}", token_suffix):
121 def get_token_from_arg(token_arg: str | Path | None) -> str | None:
133 def read_token_from_file(token_path: Path) -> str:
139 def handle_direct_token(token_path: Path, token_arg: str | Path) -> str | None:
143 "Please provide a token file or a token directly via --token arg."
150 def read_token(token_arg: str | Path | None) -> str | None:
157 "gitlab-14-5-released/"
158 "#new-gitlab-access-token-prefix-and-detection")
162 def wait_for_pipeline(projects, sha: str, timeout=None): argument
174 if timeout and time.time() - start_time > timeout: