Commit Graph

4247 Commits

Author SHA1 Message Date
Michael B. Gale
afed03cada Don't perform check for non-traced analyses 2026-10-16 22:56:47 +01:00
Michael B. Gale
e5b2809f92 Refactor non-Swift-specific parts out into traced.ts 2026-10-16 18:19:13 +01:00
Michael B. Gale
f4ae223961 Rename feature to SkipUnsupportedTracedAnalysis 2026-10-16 17:52:53 +01:00
Michael B. Gale
b09f3c6b4d Move xcodeVersion to platform.ts 2026-10-16 17:50:07 +01:00
Michael B. Gale
61cb554113 Use ActionConfig in diagnostics.ts 2026-10-16 17:44:26 +01:00
Michael B. Gale
cf5d0598fd Fix test creating diagnostic locally 2026-10-16 17:28:16 +01:00
Michael B. Gale
cba494e0a6 Check if Xcode version is unsupported 2026-10-16 17:28:16 +01:00
Michael B. Gale
df26bdf81b Add function to determine Xcode version based on symlink 2026-10-16 17:28:16 +01:00
Michael B. Gale
e0c11175e5 Add FF to fail if macOS version is unsupported 2026-10-16 17:28:16 +01:00
Michael B. Gale
db45eabc68 Check if macOS version is unsupported 2026-10-16 17:28:16 +01:00
Michael B. Gale
094875d25b Skip Swift checks if tools feature is enabled 2026-10-16 17:28:15 +01:00
Michael B. Gale
6989a48f28 Add swiftSupportsAllPlatforms to ToolsFeature 2026-10-16 17:28:15 +01:00
Michael B. Gale
70550612a5 Use macOSVersion in isSwiftCompatible 2026-10-16 17:28:13 +01:00
Michael B. Gale
a361259e4a Refactor swift check out of init-action.ts 2026-10-16 17:28:12 +01:00
Michael B. Gale
13bca40cb4 Add macOSVersion helper 2026-10-16 17:28:08 +01:00
Michael B. Gale
4b331afa38 Make getCodeQLForCmd use Env 2026-10-16 17:24:41 +01:00
Michael B. Gale
0797511522 Add osRelease to BaseState 2026-10-16 17:24:41 +01:00
Michael B. Gale
8dc9a9913b Omit --sarif-codescanning-config if the config file doesn't exist 2026-10-16 17:18:11 +01:00
Michael B. Gale
031b097718 Refactor writeTemporaryDiagnosticFile out of add[NoLanguage]Diagnostic 2026-10-16 17:18:11 +01:00
Michael B. Gale
a3e8512735 Use temporary diagnostic dir in generateFailedSarif 2026-10-16 17:18:10 +01:00
Michael B. Gale
78ebd22fd6 Make diagnostics less dependent on global state
Add limited test coverage
2026-10-16 17:18:10 +01:00
Michael B. Gale
39f74e9837 Write diagnostics to temporary location when database isn't ready 2026-10-16 17:18:09 +01:00
Michael B. Gale
11fd255a0b Refactor writeDiagnosticFile out of writeDiagnostic 2026-10-16 17:18:08 +01:00
Michael B. Gale
d6b8ed80f2 Ensure that rootDirectory is suitable for sarifFile in uploadSarifArtifact 2026-10-16 17:02:02 +01:00
Michael B. Gale
3a61940e40 Improve logging in uploadSarifArtifact 2026-10-16 17:02:02 +01:00
Michael B. Gale
850cc877c3 Upload failed SARIF as workflow artifact in test mode 2026-10-16 17:01:24 +01:00
Michael B. Gale
68eb797e87 Skip waiting for SARIF if nothing was uploaded 2026-10-16 16:54:37 +01:00
Michael B. Gale
2765b8f6f9 Propagate Config to combineSarifFilesUsingCLI 2026-10-16 16:54:37 +01:00
Michael B. Gale
b1c5d475ab Add and use shouldSkipGenerateFailedSarif 2026-10-16 16:54:37 +01:00
Michael B. Gale
e180f803c5 Allow to explicitly not skip the SARIF upload 2026-10-16 16:54:36 +01:00
Michael B. Gale
bf0e2ed66e Log when we didn't get a normal configuration file 2026-10-16 16:54:36 +01:00
Henry Mercer
ae098fa9fe Merge pull request #4242 from github/henrymercer/graduate-toolcache-cleanup
Enable cleaning up toolcache bundles by default
2026-10-16 12:43:00 +00:00
Michael B. Gale
0a458f10ac Merge pull request #4230 from github/mbg/auth/allow-unauthed
Make `auth` in `GitHubApiDetails` optional
2026-10-16 11:05:53 +00:00
Henry Mercer
1ec6b03cf4 Enable toolcache bundle cleanup by default
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9bf883d4-ecd7-4428-970f-86895f760571
2026-10-15 14:54:30 +01:00
Michael B. Gale
8dec0b9f88 Rename path to result in tests 2026-10-15 11:03:10 +01:00
Michael B. Gale
4eabea6b5e Merge remote-tracking branch 'origin/main' into mbg/start-proxy/report-version 2026-10-15 10:31:39 +01:00
Michael B. Gale
c1641847bb Remove explicit authorization header from uploadBundledDatabase 2026-10-14 20:03:19 +01:00
Michael B. Gale
047c751d92 Add a test for uploadBundledDatabase 2026-10-14 20:02:27 +01:00
Michael B. Gale
f6e8dce502 Pass apiDetails to getApiClient in uploadBundledDatabase 2026-10-14 18:28:21 +01:00
Michael B. Gale
a08b587b61 Allow getApiClient to accept GitHubApiDetails 2026-10-14 18:27:15 +01:00
Michael B. Gale
bfe264b559 Add very basic getApiClientWithExternalAuth test 2026-10-14 18:19:52 +01:00
Michael B. Gale
f9b4185b99 Check token value in uploadBundledDatabase 2026-10-14 18:19:52 +01:00
Michael B. Gale
66c96fdc35 Check auth value in getAuthorizationHeaderFor
Also add some tests for it
2026-10-14 18:19:52 +01:00
Michael B. Gale
1d30a842cd Guard against blank auth value
This shouldn't be possible, but was previously handled by the library
2026-10-14 18:19:51 +01:00
Michael B. Gale
1b0a617641 Make externalRepoAuth check more consistent 2026-10-14 18:19:51 +01:00
Michael B. Gale
96501a33ac Use getCurrentInstance() 2026-10-14 18:19:51 +01:00
Michael B. Gale
a2438139ce Make auth property on GitHubApiDetails optional 2026-10-14 18:19:50 +01:00
Michael B. Gale
e0625309c3 Move GitHubApiDetails to github.ts 2026-10-14 18:19:50 +01:00
Michael B. Gale
61bfcffab9 Add functions to get the current and dotcom instance 2026-10-14 18:19:50 +01:00
Michael B. Gale
102e46e9d1 Move some definitions out of util.ts into a new github.ts module 2026-10-14 18:19:46 +01:00