Skip to content

Commits

Commits on Jun 10, 2021

  1. Remove unnecessary type assertions

    Andrew Eisenberg committed Jun 10, 2021
    Copy the full SHA
    20aafcd View commit details

Commits on Jun 9, 2021

  1. Remove two log entries

    Cleans up the output logs even more. These entries don't add any more
    information since everything is grouped now.
    Andrew Eisenberg committed Jun 9, 2021
    Copy the full SHA
    23cdd6b View commit details
  2. Add pack download to its own log group

    Also, make the baseline count message less awkward sounding.
    Andrew Eisenberg committed Jun 9, 2021
    Copy the full SHA
    a2e96a4 View commit details
  3. Use nullish conversion for packs

    Slightly simplifies the `parsePacks` function.
    Andrew Eisenberg committed Jun 9, 2021
    Copy the full SHA
    96e7de3 View commit details
  4. Refactor codeql.ts

    Extract a `runTool` function that captures the stdout and returns it.
    A small refactoring that reduces copied code.
    Andrew Eisenberg committed Jun 9, 2021
    Copy the full SHA
    49b2220 View commit details
  5. Copy the full SHA
    82388fd View commit details
  6. Add --finalize-dataset to database finalize call

    Edoardo Pirovano authored and Edoardo Pirovano committed Jun 9, 2021
    Copy the full SHA
    babcc1b View commit details
  7. Add new log grouping for DB cleanup

    Edoardo Pirovano authored and Edoardo Pirovano committed Jun 9, 2021
    Copy the full SHA
    06df98a View commit details
  8. Add intepret-results timings to status reports

    Edoardo Pirovano authored and Edoardo Pirovano committed Jun 9, 2021
    Copy the full SHA
    0ea20c5 View commit details

Commits on Jun 8, 2021

  1. Add an integration test for packaging

    Uses two pre-existing packages to run some simple queries on a javascript
    database.
    Andrew Eisenberg committed Jun 8, 2021
    Copy the full SHA
    d42f654 View commit details
  2. Packaging: Address review comments

    1. Better malformed data guard for PackDownloadOutput
    2. Fix Packs type
    3. Remove TODO in init-action
    Andrew Eisenberg committed Jun 8, 2021
    Copy the full SHA
    1cc5f1d View commit details
  3. Replace analyze with run-queries and interpret-results

    Edoardo Pirovano authored and Edoardo Pirovano committed Jun 8, 2021
    Copy the full SHA
    2cc885d View commit details

Commits on Jun 7, 2021

  1. Some refactoring in fingerprint computation

    Edoardo Pirovano authored and Edoardo Pirovano committed Jun 7, 2021
    Copy the full SHA
    c095005 View commit details
  2. Fix out of memory in hash computation

    Edoardo Pirovano authored and Edoardo Pirovano committed Jun 7, 2021
    Copy the full SHA
    02e8dcf View commit details
  3. Merge branch 'main' into retrying-fix

    Chris Gavin authored and GitHub committed Jun 7, 2021
    Copy the full SHA
    48efe6e View commit details
  4. Fix stub in tests.

    Chris Gavin committed Jun 7, 2021
    Copy the full SHA
    f8c65b7 View commit details

Commits on Jun 6, 2021

  1. Run the pack download command

    Andrew Eisenberg committed Jun 6, 2021
    Copy the full SHA
    d87945e View commit details
  2. Add --sarif-group-rules-by-pack flag

    Edoardo Pirovano authored and Edoardo Pirovano committed Jun 6, 2021
    Copy the full SHA
    1644ade View commit details

Commits on Jun 4, 2021

  1. Avoid using SemVer instances

    Use strings instead. They are easier to serialize and deserialize.
    Andrew Eisenberg committed Jun 4, 2021
    Copy the full SHA
    06687e9 View commit details
  2. Fix logic for calculating if there are queries to run

    During the analyze phase.
    Andrew Eisenberg committed Jun 4, 2021
    Copy the full SHA
    9b5753a View commit details
  3. Cleanup CodeQL DBs and output their location for later steps

    Edoardo Pirovano authored and Edoardo Pirovano committed Jun 4, 2021
    Copy the full SHA
    ddb83a4 View commit details
  4. Copy the full SHA
    6cee818 View commit details
  5. Add back retrying.

    Chris Gavin committed Jun 4, 2021
    Copy the full SHA
    41dff7f View commit details

Commits on Jun 3, 2021

  1. Allow the codeql-action to run packages

    This commit adds a `packs` option to the codeql-config.yml file. Users
    can specify a list of ql packs to include in the analysis.
    
    For a single language analysis, the packs property looks like this:
    
    ```yaml
    packs:
      - pack-scope/pack-name1@1.2.3
      - pack-scope/pack-name2   # no explicit version means download the latest
    ```
    
    For multi-language analysis, you must key the packs block by lanaguage:
    
    ```yaml
    packs:
      cpp:
        - pack-scope/pack-name1@1.2.3
        - pack-scope/pack-name2
      java:
        - pack-scope/pack-name3@1.2.3
        - pack-scope/pack-name4
    ```
    
    This implementation adds a new analysis run (alongside custom and 
    builtin runs). The unit tests indicate that the correct commands are
    being run, but I have not actually tried this with a real CLI.
    
    Also, convert `instanceof Array` to `Array.isArray` since that is
    sightly better in some situations. See:
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#instanceof_vs_isarray
    Andrew Eisenberg committed Jun 3, 2021
    Copy the full SHA
    86a804f View commit details
  2. Cleaning up comments around env vars

    Also, move `getTemporaryDirectory` back to `actions-util`.
    Andrew Eisenberg committed Jun 3, 2021
    Copy the full SHA
    f60ef17 View commit details

Commits on Jun 2, 2021

  1. Fix Unguarded actions library use code scanning error

    Must access the env var directly in order to avoid recursive calls to 
    `getRequiredEnvParam`.
    Andrew Eisenberg committed Jun 2, 2021
    Copy the full SHA
    cc0733f View commit details
  2. Merge branch 'main' into aeisenberg/env-vars

    Andrew Eisenberg committed Jun 2, 2021
    Copy the full SHA
    082575f View commit details
  3. 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.
    Andrew Eisenberg committed Jun 2, 2021
    Copy the full SHA
    2c2ebdc View commit details
  4. 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 committed Jun 2, 2021
    Copy the full SHA
    3708898 View commit details
  5. Merge branch 'main' into update-supported-enterprise-server-versions

    Andrew Eisenberg authored and GitHub committed Jun 2, 2021
    Copy the full SHA
    739e14d View commit details
  6. Copy the full SHA
    2fee124 View commit details

Commits on Jun 1, 2021

  1. 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 committed Jun 1, 2021
    Copy the full SHA
    539d968 View commit details

Commits on May 31, 2021

  1. Use the version from package.json in the runner

    Andrew Eisenberg committed May 31, 2021
    Copy the full SHA
    1a4cdd3 View commit details
  2. 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 committed May 31, 2021
    Copy the full SHA
    4758879 View commit details

Commits on May 28, 2021

  1. Analyze: Log analysis summaries for custom queries

    Henry Mercer committed May 28, 2021
    Copy the full SHA
    2338fe5 View commit details
Older