Commits
Commits on Jun 2, 2021
-
Add environment variables to signal feature and version to the CLI
This PR ensures environment variables are set before any invocation of the CLI. Here is a list of vars that are set: https://github.com/github/codeql-coreql-team/issues/1124#issuecomment-852463521 This ensures the CLI knows the features and versions of the containing actions/runner. Additionally: - Fix the user agent so that it more closely aligns with user agent spec - Refactor environment variable initialization so that it all happens in one place and call. - Move Mode, getRequiredEnvParam, setMode, getMode out of actions-util and into util. actions-util is meant for utils only called by the action, not the runner. The `prepareLocalRunEnvironment()` method is most likely deprecated and should be removed. I originally added it because I had a way of working where I would run the action from my local machine to test out changes, but this was always a little flaky. So, I no longer use this way of working. I will probably remove it soon.
Andrew Eisenberg committedJun 2, 2021 Copy the full SHA 3708898View commit details
Commits on Jun 1, 2021
-
Use commander preAction hook for setMode
Hooks are new to commander v8. We can use hooks to ensure that `setMode` is called before every command is invoked.
Andrew Eisenberg committedJun 1, 2021 Copy the full SHA 539d968View commit details
Commits on May 31, 2021
-
Use the version from package.json in the runner
Andrew Eisenberg committedMay 31, 2021 Copy the full SHA 1a4cdd3View commit details -
Send the version and mode with the user agent
This commit changes the way the action determines if running in action or runner mode. There is now an environment variable that is set at the beginning of the process and elsewhere in the process, we can check to see if the variable is set.
Andrew Eisenberg committedMay 31, 2021 Copy the full SHA 4758879View commit details
Commits on May 28, 2021
-
Analyze: Log analysis summaries for custom queries
Henry Mercer committedMay 28, 2021 Copy the full SHA 2338fe5View commit details
Commits on May 24, 2021
-
Arthur Baars committed
May 24, 2021 Copy the full SHA 44c6b33View commit details
Commits on May 23, 2021
-
Arthur Baars committed
May 23, 2021 Copy the full SHA 4f51b8cView commit details
Commits on May 21, 2021
-
Arthur Baars committed
May 21, 2021 Copy the full SHA 9170009View commit details -
Add Ruby as a possible language
Arthur Baars committedMay 21, 2021 Copy the full SHA c3633dcView commit details -
Merge branch 'main' into aibaars-additional-packs
Andrew Eisenberg authored and GitHub committedMay 21, 2021 Copy the full SHA c3e0f88View commit details -
Arthur Baars committed
May 21, 2021 Copy the full SHA 6a14accView commit details -
Arthur Baars committed
May 21, 2021 Copy the full SHA 84bec4dView commit details -
Arthur Baars committed
May 21, 2021 Copy the full SHA 9aca271View commit details -
Ensure queries[language] objects are initialized
Arthur Baars committedMay 21, 2021 Copy the full SHA ec011ddView commit details -
Use --additional-packs instead of --search-path
Arthur Baars committedMay 21, 2021 Copy the full SHA 69cc355View commit details
Commits on May 20, 2021
-
Aditya Sharad committed
May 20, 2021 Copy the full SHA 512d467View commit details -
Group log messages while uploading results
Aditya Sharad committedMay 20, 2021 Copy the full SHA 031ec87View commit details -
Analyze: Log the analysis summary in its own group
Fix grouping of the analysis logs, so that custom query logs also get grouped. Capture the stdout of codeql database analyze, which contains the analysis summary from summary and diagnostic queries. Log this output in its own group, along with the baseline computed in the Action.
Aditya Sharad committedMay 20, 2021 Copy the full SHA 19fe63fView commit details
Commits on May 17, 2021
-
Add configuration option to set CodeQL DB location
Edoardo Pirovano authored and Edoardo Pirovano committedMay 17, 2021 Copy the full SHA 79c79f1View commit details -
Update CodeQL bundle to 20210517 / 2.5.5
Henning Makholm committedMay 17, 2021 Copy the full SHA 95f5a25View commit details
Commits on May 14, 2021
-
Add warnings about CLI hack to codeql.ts
These warnings refer to a hack that was added to the CLI in https://github.com/github/semmle-code/pull/39335 They can be removed again once the CLI has a more principled way for the CLI to recognize that it's being invoked by the runner/action.
Henning Makholm committedMay 14, 2021 Copy the full SHA e7d4215View commit details
Commits on May 13, 2021
-
Change include path for lines of code counting
Previously, we were always using `**` in the include path. the effect of this was to always count lines in the entire repository unless explicitly added to the paths-ignore. This was incorrect behaviour. Now we only using `**` if the include path is otherwise empty.
Andrew Eisenberg committedMay 13, 2021 Copy the full SHA 8e61fc2View commit details -
Use the prefix id for keying into metrics rules
Fixes a bug where we were looking for incorrect keys for metrics rules. Previously, we were using full language names in the keys. Now, we use the short language names in the metric ids. This is done through a simplification of the code. Also, this change does two smaller things: 1. Prints out the baseline count to the logs 2. Adds the `assertNever` function to ensure we never miss a case in a switch statement. This function is borrowed from vscode-codeql.
Andrew Eisenberg committedMay 13, 2021 Copy the full SHA e8b2a98View commit details
Commits on May 10, 2021
-
Output environment file for Windows
Edoardo Pirovano committedMay 10, 2021 Copy the full SHA a5506d8View commit details -
Merge branch 'main' into daverlo/categoryInput
David Verdeguer committedMay 10, 2021 Copy the full SHA ea18d47View commit details
Commits on May 7, 2021
-
We were inadvertently using codeql language ids instead of the action's language ids. There is now a 3-way mapping between the ids used by the lines counter library, the action, and codeql.
Andrew Eisenberg committedMay 7, 2021 Copy the full SHA b6ae33fView commit details
Commits on May 6, 2021
-
Merge branch 'main' into hmakholm/pr/fix-escaping
Henning Makholm authored and GitHub committedMay 6, 2021 Copy the full SHA ad98dc6View commit details -
Robert committed
May 6, 2021 Copy the full SHA 031dc50View commit details -
Merge branch 'main' into hmakholm/pr/fix-escaping
Henning Makholm authored and GitHub committedMay 6, 2021 Copy the full SHA ee062d3View commit details
Commits on May 5, 2021
-
Avoid fingerprinting directories
Andrew Eisenberg committedMay 5, 2021 Copy the full SHA f584f94View commit details -
Merge branch 'main' into hmakholm/pr/fix-escaping
Andrew Eisenberg authored and GitHub committedMay 5, 2021 Copy the full SHA b477190View commit details -
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
Henning Makholm and Andrew Eisenberg committedMay 5, 2021 Copy the full SHA a6ebb19View commit details -
fix value escaping in codeql-env.sh
Henning Makholm committedMay 5, 2021 Copy the full SHA e7e64d5View commit details -
Merge branch 'main' into aeisenberg/warning-message
Henry Mercer authored and GitHub committedMay 5, 2021 Copy the full SHA c2ec5a2View commit details -
Log each query as it's interpreted when calling codeql database analyze
Henry Mercer committedMay 5, 2021 Copy the full SHA 2c0a857View commit details