Henry Mercer
62fbeb66b3
Merge branch 'main' into henrymercer/fix-diff-informed-multiple-analyze
2025-05-01 12:05:02 +01:00
Henry Mercer
083772aae4
Do not fail diff informed analyses when analyze is run twice in the same job
2025-05-01 12:00:46 +01:00
Andrew Eisenberg
3ca9a88941
Add actions-specific telemetry fields
2025-04-29 16:14:46 -07:00
Chuan-kai Lin
94102d99b0
Set checkPresence in diff-range data extension
...
This commit updates the diff-range data extension to use the new
checkPresence field being introduced in CodeQL CLI 2.21.0, so that
diff-informed analysis no longer fails when a query pack does not have
the restrictAlertsTo extensible predicate.
2025-04-04 08:41:50 -07:00
Chuan-kai Lin
3c4533916b
Call shouldPerformDiffInformedAnalysis() outside setupDiffInformedQueryRun()
2025-03-27 10:27:24 -07:00
Chuan-kai Lin
1994ea768e
Move shouldPerformDiffInformedAnalysis()
2025-03-27 10:27:24 -07:00
Chuan-kai Lin
534bc63d5e
Rename diff-filtering-utils.ts to diff-informed-analysis-utils.ts
2025-03-27 10:27:23 -07:00
Chuan-kai Lin
3fbee52426
Extract shouldPerformDiffInformedAnalysis()
2025-03-27 10:27:23 -07:00
Chuan-kai Lin
c1fc897eb2
getFileDiffsWithBasehead(): use CODE_SCANNING_REPOSITORY if present
2025-03-27 08:50:31 -07:00
Chuan-kai Lin
f88459c0a3
Use getRepositoryNwo()
2025-03-26 10:18:40 -07:00
Chuan-kai Lin
b361a91508
Diff-informed analysis: fix empty PR handling
2025-03-21 14:18:25 -07:00
Chuan-kai Lin
d109dd5d33
Detect PR branches for Default Setup
2025-03-21 09:25:08 -07:00
Chuan-kai Lin
3e5446c3d2
Introduce PullRequestBranches
2025-03-21 09:24:16 -07:00
Chuan-kai Lin
6adda79888
Move PR branch detection into setupDiffInformedQueryRun()
2025-03-20 09:51:17 -07:00
Michael B. Gale
afa3ed33bb
Add more documentation
2025-03-13 11:45:27 +00:00
Michael B. Gale
f8367fb063
Set and cache dependency directory for Java build-mode: none
2025-03-13 11:39:39 +00:00
Chuan-kai Lin
d76f393713
Do not set --expect-discarded-cache on "cleanup-level: overlay"
...
When a user specifies "cleanup-level: overlay", it suggests that the
user wishes to preserve the evaluation cache for future use. So in this
case we should not set --expect-discarded-cache when running queries.
2025-03-10 10:32:13 -07:00
Chuan-kai Lin
77bc2a595e
Write pr-diff-range JSON file
2025-02-14 08:50:52 -08:00
Chuan-kai Lin
071996fbe2
getDiffRanges: better fallback for absent patch
2025-01-16 09:26:22 -08:00
Chuan-kai Lin
5889cfd499
Add analysis_is_diff_informed to status report
2025-01-16 08:50:23 -08:00
Henry Mercer
40a203a0ea
Remove redundant version checks
...
Remove version checks that always return true given the new minimum version of CodeQL.
2025-01-15 18:02:25 +00:00
Chuan-kai Lin
3548ff54b5
writeDiffRangeDataExtensionPack: escape special characters in filenames
2025-01-13 14:28:56 -08:00
Chuan-kai Lin
52315a9f7d
setupDiffInformedQueryRun: log setup failure
2025-01-13 14:28:56 -08:00
Chuan-kai Lin
784896750f
getDiffRanges: add unit tests
2025-01-13 14:28:56 -08:00
Chuan-kai Lin
d4c56bbb31
getDiffRanges: improve handling for missing patch
2025-01-13 14:28:56 -08:00
Chuan-kai Lin
63d1f4f8a2
getPullRequestEditedDiffRanges: check the number of changed files
2025-01-13 14:28:56 -08:00
Chuan-kai Lin
68b1b4e9eb
getPullRequestEditedDiffRanges: compute diff ranges
2025-01-13 14:28:54 -08:00
Chuan-kai Lin
68378a359a
getPullRequestEditedDiffRanges: use GitHub API
2025-01-13 07:35:44 -08:00
Henry Mercer
b58f4471c8
Use @actions/io to locate binaries
2024-12-19 14:21:06 +00:00
Chuan-kai Lin
b0cd76b9fb
Move Git functions to git-utils.ts
2024-12-10 08:44:11 -08:00
Chuan-kai Lin
57a28594b9
getPullRequestEditedDiffRanges: work around fatal error
...
This commits adds a "git repack" step to getPullRequestEditedDiffRanges
to work around a Git bug concerning tracking of grafted commits.
2024-12-09 10:46:38 -08:00
Chuan-kai Lin
70aac4e018
Introduce withGroupAsync()
2024-12-09 10:46:38 -08:00
Chuan-kai Lin
2eea97e7b9
Fix DiffThunkRange access
...
This commit fixes lingering array index access that I missed when I
converted getPullRequestEditedDiffRanges() results from tuples to
DiffThunkRange objects.
2024-11-21 13:49:36 -08:00
Chuan-kai Lin
f7935cc485
Diff-informed PR analysis
2024-10-29 07:01:19 -07:00
Chuan-kai Lin
b311eee555
Add sarifRunPropertyFlag to databaseInterpretResults()
2024-10-23 14:32:39 -07:00
Henry Mercer
dd7307d603
Refactoring: Simplify retrieving error message
2024-09-16 22:38:35 +02:00
Henry Mercer
68ba39bacf
Merge branch 'main' into dependabot/npm_and_yarn/npm-7954a73ad2
2024-08-06 14:02:21 +01:00
Henry Mercer
ecb9ccfcb1
Fix new linter errors
2024-08-05 19:22:26 +01:00
Henry Mercer
0763ccfe11
Remove unneeded code for 2.13.4 and earlier
2024-08-05 17:48:55 +01:00
Henry Mercer
0669d181f5
Merge branch 'main' into henrymercer/enable-direct-tracing
2024-07-08 10:32:33 +01:00
Henry Mercer
7e6aa4d65a
Propagate configuration errors from running queries
2024-07-02 14:53:43 +02:00
Henry Mercer
a52b209ec8
Enable direct tracing the autobuild build mode by default
2024-06-26 19:38:13 +01:00
Henry Mercer
5ac5c91bc1
End tracing early in autobuild Action for improved performance and reliability
...
This lets us achieve some performance and reliability improvements for
workflows that run autobuild directly without specifying a build mode.
2024-05-09 15:06:36 +01:00
Angela P Wen
ac2f82a1ff
Log warning if SIP is disabled and CLI version is < 2.15.1 ( #2261 )
...
* PR Checks: use `macos-12` runners for CLI v. < 2.15.1
Prior to CLI v2.15.1, MacOS ARM runners were not supported by the build tracer. "macos-latest" is now an ARM runner, so we run these tests on the old CLIs on Intel runners instead.
* Log a warning if SIP is disabled and CLI is < 2.15.1
* Add changenote for SIP-disabled support on old CLI versions
* Set up Python 3.11 for all MacOS checks
2024-04-25 22:20:13 +00:00
Henry Mercer
3d49faaabb
Use extraction via build mode in autobuild Action when available
2024-04-12 17:07:08 +01:00
Henry Mercer
e37d0f3e7c
Use direct tracing when autobuild build mode specified
...
Behind a flag, for now
2024-04-12 17:06:35 +01:00
Henry Mercer
5b74166227
Move BuildMode to util.ts
2024-04-12 16:37:13 +01:00
Rasmus Wriedt Larsen
3d026bcb8d
Apply suggestions from code review
...
Co-authored-by: Henry Mercer <henrymercer@github.com>
2024-04-09 12:28:29 +02:00
Rasmus Wriedt Larsen
d8293662f4
Fix linting errors
2024-04-04 17:14:42 +02:00
Rasmus Wriedt Larsen
9ba21c3639
Autoformat
2024-04-04 17:13:31 +02:00