Michael B. Gale
70417cd0ad
Merge remote-tracking branch 'origin/main' into mbg/ci/validate-yaml
2026-11-03 10:10:17 +00:00
Michael B. Gale
fb9d45340b
Merge remote-tracking branch 'origin/main' into mbg/refactor-util/errors
2026-10-30 16:50:30 +00:00
Michael B. Gale
fab591c88b
Run lint-fix with newer version of prettier
2026-10-30 15:33:51 +00:00
Michael B. Gale
6d448e0c5f
Allow runTool to inherit env
2026-10-23 13:09:20 +01:00
Michael B. Gale
d7e4421be7
Remove unused type parameters from Env classes
2026-10-23 12:54:44 +01:00
Michael B. Gale
5c1005e0ae
Merge branch 'main' into mbg/refactor-util/errors
2026-10-21 16:58:03 +01:00
Michael B. Gale
7def52843a
Move initializeEnvironment out of util.ts
2026-10-21 16:57:16 +01:00
Michael B. Gale
774bc191bf
Remove unused type parameters from Env classes
2026-10-21 16:57:15 +01:00
Michael B. Gale
a69c7cb332
Document that setting the env vars to false takes precedence
2026-10-20 18:02:30 +01:00
Michael B. Gale
6e9aec682d
Add and use shouldSkipGenerateFailedSarif
2026-10-20 16:07:25 +00:00
Michael B. Gale
4f747696ca
Merge branch 'main' into mbg/improve-checkout-path
2026-10-14 10:57:57 +01:00
Michael B. Gale
bd97dda6bf
Add and use __CODEQL_ACTION_TEST_ENV__ in tests
2026-10-08 20:23:37 +01:00
Michael B. Gale
d6196d8703
Rename exportVariable wrapper to exportEnvVar
2026-10-08 20:06:51 +01:00
Michael B. Gale
ebd711ff66
Deprecate isInTestMode in favour of a more clearly named method
2026-10-07 20:12:01 +01:00
Michael B. Gale
1728f0c676
Add wrapper around core.exportVariable
2026-10-07 20:12:00 +01:00
Michael B. Gale
63c5299790
Move isInTestMode to environment.ts
2026-10-07 20:12:00 +01:00
Michael B. Gale
54a43494ca
Propagate checkoutPath to getRef
2026-09-22 16:25:46 +01:00
Henry Mercer
31da345c07
Address review comments
...
Delete each version directory individually so that a symlinked one is skipped rather than removed, take an `ActionState` so the environment is read through `ReadOnlyEnv` rather than the deprecated `getOptionalEnvVar`, let `deleteToolcacheBundles` report its own failure to locate the toolcache instead of having the caller catch it, quote paths in log messages, and rename `HAS_OBTAINED_CODEQL_TOOLS` to `HAS_SET_UP_CODEQL`, which is also set when we find the tools in the toolcache rather than downloading them.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-09-04 17:43:40 +01:00
Henry Mercer
4a0b22ec25
Delete unused CodeQL bundles from the toolcache before downloading
...
When we download a bundle the toolcache often already holds a different one that the job will not use, and on GitHub-hosted runners it shares a filesystem with the workspace, so it takes space away from the analysis. Empty the toolcache before downloading, which also frees space for the archive during extraction, and which is safe because getting as far as a download means the tools were not resolved from the toolcache. Skip this once a step has obtained the tools, since a later step may run a path it was given, and gate it on the runner being GitHub-hosted and on a feature flag that is off by default.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com >
2026-09-04 10:12:10 +01:00
Mario Campos
5f8c44ba62
Persist CodeQL version output to file rather than environment
2026-08-07 15:11:20 -05:00
Michael B. Gale
d2f5cbbe91
Add get method to ReadOnlyEnv
2026-07-29 13:22:46 +01:00
Michael B. Gale
42a3b94790
Add CODEQL_ACTION_ prefix to JOB_RUN_UUID
2026-07-29 11:58:44 +01:00
Michael B. Gale
b946565527
Add and use clone method for ReadOnlyEnv
2026-07-14 16:59:51 +01:00
Michael B. Gale
8763bac625
Add RegistryProxyVars enum
2026-07-13 16:15:40 +01:00
Michael B. Gale
ab6fd520bd
Accept Env for setupActionsVars
...
Also extract env var strings into `ActionsEnvVars`
2026-07-09 20:03:26 +01:00
Michael B. Gale
4b164dbc17
Add CODE_SCANNING_* vars to EnvVar enum
2026-07-09 14:51:22 +01:00
Michael B. Gale
80dcb7ccdf
Add RUNNER_ENVIRONMENT to ActionsEnvVars
2026-07-09 14:51:22 +01:00
Michael B. Gale
a440e35eda
Move ActionsEnvVars to environment.ts
2026-07-09 12:48:49 +01:00
Michael B. Gale
be67a7be93
Add hasChanged method to Env
2026-07-09 12:41:31 +01:00
Michael B. Gale
732911a2fa
Turn Env into a class, and add ReadOnlyEnv
2026-07-09 12:38:40 +01:00
Michael B. Gale
1d0e1b20e5
Move env var getters out of util.ts
2026-07-09 12:20:20 +01:00
Michael B. Gale
4c868b3e7e
Allow setting environment variables
2026-07-09 12:14:09 +01:00
Michael B. Gale
8d24507592
Allow env input for relevant functions in actions-util.ts
2026-07-09 12:14:07 +01:00
Michael B. Gale
73b0850a89
Allow abstracting over process.env
2026-07-06 12:27:42 +01:00
Henry Mercer
bab673d0e0
Cache CLI version information across Actions steps
2026-06-02 19:27:05 +01:00
Henry Mercer
55a0f2b2aa
Add environment variable override
2026-03-10 15:41:40 +00:00
Henry Mercer
bef08edf32
Update to log deprecation warning
...
Move rollout to April
2026-03-10 13:14:00 +00:00
Michael B. Gale
2abec3f0c3
Replace most occurrences of CSRA
2026-02-17 14:55:31 +00:00
Michael B. Gale
0ce6420f8e
Validate CODEQL_ACTION_CSRA_ASSESSMENT_ID value
2026-02-12 20:15:18 +00:00
Michael B. Gale
055e6b6f36
Add EnvVar constant for analysis key
2026-01-19 13:41:38 +00:00
Henry Mercer
95246ce019
Prefer explicit env var to binary accessibility check
2025-12-18 14:05:12 +00:00
Henry Mercer
cac5926de5
Delete unused exports
2025-11-18 18:16:54 +00:00
Michael B. Gale
127851b399
Add environment variable for skipping workflow validation
2025-10-27 15:42:43 +00:00
Michael B. Gale
c0e8887d5a
Throw a ConfigurationError if setup-codeql has run before init
2025-10-17 12:17:47 +01:00
Paolo Tranquilli
d05f2255a0
Tweak comment
2025-10-08 09:34:01 +02:00
Paolo Tranquilli
25c8db918a
Revert "Specify reason for skipping SARIF upload in logs"
...
This reverts commit 680b07003d .
2025-10-06 16:59:45 +02:00
Paolo Tranquilli
680b07003d
Specify reason for skipping SARIF upload in logs
2025-10-06 15:39:29 +02:00
Paolo Tranquilli
11e4034414
Clarify comment about SKIP_SARIF_UPLOAD setting
2025-10-06 15:23:18 +02:00
Paolo Tranquilli
e0b9da7b0a
Introduce CODEQL_ACTION_SKIP_SARIF_UPLOAD
...
This triggers a subset of the behavior of `CODEQL_ACTION_TEST_MODE`,
specifically just skipping the SARIF upload step. This is required for
our internal testing where we want the SARIF file (via
`CODEQL_ACTION_DUMP_SARIF_DIR`) but don't want to actually upload it,
but we don't want the rest of the behaviour of `CODEQL_ACTION_TEST_MODE`
that is specific for `codeql-action` own CI checks.
2025-10-06 14:38:32 +02:00
Nick Rolfe
0abf548bb3
Add feature flag to roll out JAR minimization in the Java extractor
2025-09-12 12:09:34 +01:00