Commit Graph

4254 Commits

Author SHA1 Message Date
Michael B. Gale
1becbc2773 Accept paths containing only major version
Also fix unescaped dot patterns in regex
2026-10-20 17:48:19 +00:00
Michael B. Gale
314a161fec Use lstat instead of stat 2026-10-20 17:48:19 +00:00
Michael B. Gale
5407aff91b Include URL to announcement in diagnostic and log messages 2026-10-20 17:48:19 +00:00
Michael B. Gale
fa3256a628 Don't perform check for non-traced analyses 2026-10-20 17:48:19 +00:00
Michael B. Gale
d11751fd79 Refactor non-Swift-specific parts out into traced.ts 2026-10-20 17:48:19 +00:00
Michael B. Gale
50c6017169 Rename feature to SkipUnsupportedTracedAnalysis 2026-10-20 17:48:19 +00:00
Michael B. Gale
e5beb09ff8 Move xcodeVersion to platform.ts 2026-10-20 17:48:19 +00:00
Michael B. Gale
c9a4f525c1 Use ActionConfig in diagnostics.ts 2026-10-20 17:48:19 +00:00
Michael B. Gale
c4476d14b8 Fix test creating diagnostic locally 2026-10-20 17:48:19 +00:00
Michael B. Gale
7ecbe1c837 Check if Xcode version is unsupported 2026-10-20 17:48:19 +00:00
Michael B. Gale
0f2d6a8cd3 Add function to determine Xcode version based on symlink 2026-10-20 17:48:19 +00:00
Michael B. Gale
943789423c Add FF to fail if macOS version is unsupported 2026-10-20 17:48:19 +00:00
Michael B. Gale
4d503a48ac Check if macOS version is unsupported 2026-10-20 17:48:19 +00:00
Michael B. Gale
d886064923 Skip Swift checks if tools feature is enabled 2026-10-20 17:48:19 +00:00
Michael B. Gale
7bf3a0b3f7 Add swiftSupportsAllPlatforms to ToolsFeature 2026-10-20 17:48:19 +00:00
Michael B. Gale
97026fd991 Use macOSVersion in isSwiftCompatible 2026-10-20 17:48:19 +00:00
Michael B. Gale
1d6de2df20 Refactor swift check out of init-action.ts 2026-10-20 17:48:19 +00:00
Michael B. Gale
7ff1344e69 Add macOSVersion helper 2026-10-20 17:48:19 +00:00
Michael B. Gale
3487fbafb2 Make getCodeQLForCmd use Env 2026-10-20 17:48:19 +00:00
Michael B. Gale
886bf9a3c9 Add osRelease to BaseState 2026-10-20 17:48:19 +00:00
Michael B. Gale
ba569ac626 Omit --sarif-codescanning-config if the config file doesn't exist 2026-10-20 17:48:17 +00:00
Michael B. Gale
581a0e148e Refactor writeTemporaryDiagnosticFile out of add[NoLanguage]Diagnostic 2026-10-20 17:48:17 +00:00
Michael B. Gale
64723df932 Use temporary diagnostic dir in generateFailedSarif 2026-10-20 17:48:17 +00:00
Michael B. Gale
67f25913cb Make diagnostics less dependent on global state
Add limited test coverage
2026-10-20 17:48:17 +00:00
Michael B. Gale
f422d8a874 Write diagnostics to temporary location when database isn't ready 2026-10-20 17:48:17 +00:00
Michael B. Gale
56e0d42f68 Refactor writeDiagnosticFile out of writeDiagnostic 2026-10-20 17:48:17 +00:00
Michael B. Gale
b96e3390db Change comment for getConfig call in upload-sarif 2026-10-20 18:07:32 +01:00
Michael B. Gale
7fa45180db Use shouldSkipSarifUpload in analyze-action.ts 2026-10-20 18:06:24 +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
74ddcd9f65 Fix typo in comment 2026-10-20 17:59:12 +01:00
Michael B. Gale
950b1479a1 Ensure that rootDirectory is suitable for sarifFile in uploadSarifArtifact 2026-10-20 16:07:25 +00:00
Michael B. Gale
5b69b28796 Improve logging in uploadSarifArtifact 2026-10-20 16:07:25 +00:00
Michael B. Gale
1d373e07cd Upload failed SARIF as workflow artifact in test mode 2026-10-20 16:07:25 +00:00
Michael B. Gale
e7340eea1b Skip waiting for SARIF if nothing was uploaded 2026-10-20 16:07:25 +00:00
Michael B. Gale
02fb8cc38a Propagate Config to combineSarifFilesUsingCLI 2026-10-20 16:07:25 +00:00
Michael B. Gale
6e9aec682d Add and use shouldSkipGenerateFailedSarif 2026-10-20 16:07:25 +00:00
Michael B. Gale
a9cd2f9fa7 Allow to explicitly not skip the SARIF upload 2026-10-20 16:07:25 +00:00
Michael B. Gale
be1223f63e Log when we didn't get a normal configuration file 2026-10-20 16:07:25 +00: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