Lines Matching +full:repo +full:- +full:token
7 # http://www.apache.org/licenses/LICENSE-2.0
24 # pylint: disable=wrong-import-position,import-error
62 # given to OSS-Fuzz users by not making them specify the language again (and
69 # pylint: disable=too-few-public-methods,too-many-instance-attributes
86 def token(self): member in BaseCiEnvironment
87 """Returns the CI API token."""
118 def token(self): member in GenericCiEnvironment
119 """Returns the CI API token."""
120 return os.getenv('TOKEN')
124 """Returns a tuple containing the project repo owner and None."""
126 # Repo owner is a githubism.
144 def token(self): member in GithubEnvironment
145 """Returns the CI API token."""
162 """Returns a tuple containing the project repo owner and the name of the
163 repo."""
164 # On GitHub this includes owner and repo name.
166 # Use os.path.split to split owner from repo.
179 EXTERNAL_GITHUB = 0 # Non-OSS-Fuzz on GitHub actions.
180 INTERNAL_GITHUB = 1 # OSS-Fuzz on GitHub actions.
181 INTERNAL_GENERIC_CI = 2 # OSS-Fuzz on any CI.
182 EXTERNAL_GENERIC_CI = 3 # Non-OSS-Fuzz on any CI.
207 self.token = self._ci_env.token
221 # Do validation here so that unittests don't need to make a fully-valid
241 """Returns True if this is an OSS-Fuzz project."""
313 with open(self._github_event_path, encoding='utf-8') as file_handle:
342 # pylint: disable=consider-using-ternary