mirror of
https://github.com/github/codeql.git
synced 2026-08-03 08:52:55 +02:00
14 lines
500 B
Python
14 lines
500 B
Python
import os
|
|
|
|
|
|
def test(codeql, go, check_build_environment):
|
|
check_build_environment.source_root = "work"
|
|
os.environ["LGTM_INDEX_IMPORT_PATH"] = "test"
|
|
|
|
# The diagnostic message depends on the environment we are running in. To ensure consistent
|
|
# output, we set `GITHUB_ACTIONS` to `true` if we are not actually running in a workflow.
|
|
if (os.environ.get("GITHUB_ACTIONS", "") != "true"):
|
|
os.environ["GITHUB_ACTIONS"] = "true"
|
|
|
|
codeql.database.create(source_root="work")
|