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
7def52843a
Move initializeEnvironment out of util.ts
2026-10-21 16:57:16 +01:00
Michael B. Gale
23d418cf2e
Remove getRunnerLogger
2026-10-14 14:50:54 +01:00
Michael B. Gale
67f44bc916
Use Logger for printDebugLogs and log when returning early
2026-10-12 22:48:21 +01:00
Michael B. Gale
ac8654a8f2
Add printDebugLogs tests
2026-10-12 13:08:08 +01:00
Henry Mercer
36148cccb9
Run more actions util tests serially
2026-03-04 13:08:37 +01:00
Henry Mercer
675af55c60
Run some unit tests in parallel
2026-03-04 12:40:22 +01:00
Michael B. Gale
f59338d600
Remove isCCR
2026-02-24 10:33:23 +00:00
Michael B. Gale
377300bcda
Add mockCCR helper to testing-utils
2026-02-15 15:40:23 +00:00
Michael B. Gale
055e6b6f36
Add EnvVar constant for analysis key
2026-01-19 13:41:38 +00:00
Michael B. Gale
3eaf00092b
Add isCCR helper, and update isDefaultSetup
2025-11-19 19:07:21 +00:00
Michael B. Gale
594623d72f
Fix linter errors
2025-08-06 16:19:09 +01:00
Michael B. Gale
1b76c0b9c1
Use withMockedEnv
2025-08-06 12:39:35 +01:00
Michael B. Gale
72770345eb
Fix legacy SARIF categories for CQ in default setup
2025-08-06 10:14:36 +01:00
Chuan-kai Lin
8c5122ea75
Add getPullRequestBranches() tests
2025-07-07 08:13:06 -07:00
Chuan-kai Lin
b2c41ecd38
Create git-utils.test.ts for git-utils.ts
2024-12-10 08:44:11 -08:00
Chuan-kai Lin
b0cd76b9fb
Move Git functions to git-utils.ts
2024-12-10 08:44:11 -08:00
Chuan-kai Lin
2bfc468cd8
Add decodeGitFilePath()
2024-10-21 10:37:28 -07:00
Chuan-kai Lin
d64cca4b60
Rename determineMergeBaseCommitOid()
...
The name suggests that the function computes the merge base, which for
Git means specifically the best common ancestors between multiple
commits or branches (see `git merge-base`).
But what the function actually does is to calculate the HEAD commit of
the PR base branch, as derived from the PR merge commit that the action
analyzes. So even though the function has to do with "merge" and "base",
using the term "merge base" is still misleading at best.
This commit renames the function to determineBaseBranchHeadCommitOid(),
which more clearly indicates what the function does.
2024-10-03 08:43:36 -07:00
Chuan-kai Lin
955d00143d
Extract runGitCommand()
2024-10-03 08:29:52 -07:00
nickfyson
978bdd643f
fix test that runs flakily locally
2024-04-03 20:43:26 +01:00
Andrew Eisenberg
469786860d
Address more comments from PR
2023-08-29 13:20:55 -07:00
Andrew Eisenberg
e603106d1a
Add change note
2023-08-29 13:11:48 -07:00
Andrew Eisenberg
09940b4bb9
Address comments from PR
2023-08-29 12:11:32 -07:00
Andrew Eisenberg
d721f69753
Add better error messages when determining merge-base
...
Avoid printing scary error messages to console when the current
directory is not a git repo. Instead provide a better reason for the git
failure and continue on.
2023-08-28 15:50:30 -07:00
Henry Mercer
c6d284324b
Pull out a dedicated status report file
2023-08-07 16:13:59 +01:00
Angela P Wen
b16296be30
Auto-fix linting errors
2023-07-25 10:34:21 +02:00
Henry Mercer
2637069a45
Resolve dependency cycles between actions-util and workflow
2023-07-19 17:21:33 +01:00
Henry Mercer
3a960869ac
Simplify definitions of environment variables
2023-07-06 17:28:37 +01:00
Angela P Wen
4385ad5563
Send job_run_uuid to status report telemetry ( #1685 )
2023-06-20 23:45:51 -07:00
Henry Mercer
bf419682de
Remove unused CODESCANNING_EVENT_NAME environment variable
2023-05-31 15:37:11 +01:00
Charis Kyriakou
94cc1dea00
Add override for code scanning analysis of default branch
2023-03-23 13:31:00 +00:00
Orhan Toy
b7028afcb4
Make sure env is reset between tests
2022-12-13 12:18:40 +00:00
Orhan Toy
ccee4c68ff
Add tests for CODE_SCANNING_REF
2022-12-13 11:51:16 +00:00
Henry Mercer
79f8286c68
Refactoring: Separate out workflow related functionality
...
No semantic changes.
2022-11-23 19:27:01 +00:00
Henry Mercer
b498c79130
Remove concept of Actions / runner mode
2022-11-14 16:37:48 +00:00
David Verdeguer
063e083705
Fix linting
2022-09-07 22:45:34 +02:00
David Verdeguer
335aa5e39f
Add test for workflowEventName
2022-09-07 09:45:08 +02:00
Chris Gavin
5960bffd3f
When running on a schedule, make a better guess about whether we're analyzing the default branch.
2022-08-25 10:58:16 +01:00
Angela P Wen
eeee462f05
Move debug artifact methods into separate file
2022-08-02 12:27:52 +02:00
Angela P Wen
5229df1eef
Add unit test descriptions
2022-08-01 13:17:40 +02:00
Andrew Eisenberg
0efcf74ce0
Add typings for js-yaml
2022-06-14 07:50:47 -07:00
Andrew Eisenberg
d068f5372a
Fix failing tests
2022-03-25 10:00:47 -07:00
Alex Croteau
1eaaf07b91
Adds check on inputs and compiled files
2022-01-31 20:06:17 -05:00
Alex Croteau
980fd4ed38
Adds ref and SHA as inputs, and sarif-id as output
2022-01-31 20:06:17 -05:00
Edoardo Pirovano
f360da772a
Sanitize artifact name before using
2021-11-05 08:40:16 +00:00
Henry Mercer
93c9da2c2e
Reference exported names via import *.
...
Rather than via properties on default exports — see
https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
2021-08-11 13:17:04 +01:00
Edoardo Pirovano
05fc5a885c
Replace safeLoad with load
2021-07-27 22:12:26 +01:00
Robert
146c897909
Upload CodeQL databases
2021-06-22 13:05:12 +01:00
Andrew Eisenberg
2c2ebdc5c5
Remove local environment running
...
This is a functionality that never worked perfectly and hasn't been
used for a while.
This allows developers to run the action on their local machine, but
the run was always flaky and never 100% mirrored what was happening on
the actions runner.
2021-06-02 11:26:11 -07:00