Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: github/codeql-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c2dc671
Choose a base ref
...
head repository: github/codeql-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e113c55
Choose a head ref

Commits on Oct 10, 2023

  1. Re-enable kotlin tests

    Reverts #1473
    aeisenberg committed Oct 10, 2023
    Copy the full SHA
    7feb9a0 View commit details

Commits on Oct 13, 2023

  1. Revert "Disable flaky Swift autobuild checks"

    This reverts commit ff39eb8.
    henrymercer authored and aeisenberg committed Oct 13, 2023
    Copy the full SHA
    e42f5e5 View commit details
  2. Update tests

    aeisenberg committed Oct 13, 2023
    Copy the full SHA
    7a14c3b View commit details
  3. Explicitly setup a kotlin version

    Change the `prepare-test` action to conditionally setup kotlin.
    aeisenberg committed Oct 13, 2023
    Copy the full SHA
    fcf7c47 View commit details

Commits on Mar 18, 2024

  1. Copy the full SHA
    4b2a786 View commit details
  2. Copy the full SHA
    6a57a86 View commit details
  3. Merge pull request #2201 from github/mergeback/v3.24.8-to-main-05963f47

    Mergeback v3.24.8 refs/heads/releases/v3 into main
    henrymercer authored Mar 18, 2024
    Copy the full SHA
    423a04b View commit details
  4. Copy the full SHA
    dfb0fd0 View commit details
  5. Bump the npm group with 3 updates

    Bumps the npm group with 3 updates: [adm-zip](https://github.com/cthackers/adm-zip), [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) and [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser).
    
    
    Updates `adm-zip` from 0.5.10 to 0.5.12
    - [Release notes](https://github.com/cthackers/adm-zip/releases)
    - [Changelog](https://github.com/cthackers/adm-zip/blob/master/history.md)
    - [Commits](cthackers/adm-zip@v0.5.10...v0.5.12)
    
    Updates `@typescript-eslint/eslint-plugin` from 7.1.1 to 7.3.0
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.3.0/packages/eslint-plugin)
    
    Updates `@typescript-eslint/parser` from 7.1.1 to 7.3.0
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.3.0/packages/parser)
    
    ---
    updated-dependencies:
    - dependency-name: adm-zip
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: npm
    - dependency-name: "@typescript-eslint/eslint-plugin"
      dependency-type: direct:development
      update-type: version-update:semver-minor
      dependency-group: npm
    - dependency-name: "@typescript-eslint/parser"
      dependency-type: direct:development
      update-type: version-update:semver-minor
      dependency-group: npm
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 18, 2024
    Copy the full SHA
    66736a1 View commit details
  6. Copy the full SHA
    ea1261a View commit details
  7. Bump the actions-setup-swift group (#2204)

    Bumps the actions-setup-swift group in /.github/actions/setup-swift with 1 update: [swift-actions/setup-swift](https://github.com/swift-actions/setup-swift).
    
    
    Updates `swift-actions/setup-swift` from 1.26.0 to 2.0.0
    - [Release notes](https://github.com/swift-actions/setup-swift/releases)
    - [Commits](swift-actions/setup-swift@cdbe0f7...e1dca7c)
    
    ---
    updated-dependencies:
    - dependency-name: swift-actions/setup-swift
      dependency-type: direct:production
      update-type: version-update:semver-major
      dependency-group: actions-setup-swift
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 18, 2024
    Copy the full SHA
    1aae1e7 View commit details
  8. Merge pull request #2205 from github/dependabot/npm_and_yarn/npm-3e6f…

    …acd965
    
    Bump the npm group with 3 updates
    angelapwen authored Mar 18, 2024
    Copy the full SHA
    294b6df View commit details

Commits on Mar 19, 2024

  1. Copy the full SHA
    7f375ae View commit details

Commits on Mar 20, 2024

  1. Copy the full SHA
    4aca720 View commit details
  2. Copy the full SHA
    c84e4c8 View commit details
  3. Merge pull request #2206 from github/henrymercer/improved-autobuild-e…

    …rror-with-build-modes
    
     Improve error message when using build modes and autobuild fails
    henrymercer authored Mar 20, 2024
    Copy the full SHA
    9c0c35b View commit details
  4. Merge pull request #2207 from github/henrymercer/more-processing-erro…

    …r-categorization
    
    Mark some more processing errors as invalid SARIF upload requests
    henrymercer authored Mar 20, 2024
    Copy the full SHA
    964f5e7 View commit details

Commits on Mar 21, 2024

  1. Add changelog note

    github-actions[bot] authored and aibaars committed Mar 21, 2024
    Copy the full SHA
    9cf4574 View commit details
  2. Copy the full SHA
    a3ab02e View commit details
  3. Merge pull request #2203 from github/update-bundle/codeql-bundle-v2.16.5

    Update default bundle to 2.16.5
    aibaars authored Mar 21, 2024
    Copy the full SHA
    09d4101 View commit details

Commits on Mar 22, 2024

  1. Copy the full SHA
    6505708 View commit details
  2. Merge pull request #2208 from github/update-v3.24.9-09d4101d2

    Merge main into releases/v3
    aibaars authored Mar 22, 2024
    Copy the full SHA
    1b1aada View commit details
  3. Copy the full SHA
    7cdd972 View commit details
  4. Revert "Update version and changelog for v2.24.8"

    This reverts commit 6007966.
    github-actions[bot] committed Mar 22, 2024
    Copy the full SHA
    0b21c94 View commit details
  5. Revert "Update checked-in dependencies"

    This reverts commit f018a95.
    github-actions[bot] committed Mar 22, 2024
    Copy the full SHA
    72d46cb View commit details
  6. Copy the full SHA
    763babe View commit details
  7. Copy the full SHA
    abca38c View commit details
  8. Copy the full SHA
    ca4079b View commit details
  9. Copy the full SHA
    61ddd48 View commit details
  10. Merge pull request #2210 from github/backport-v2.24.9-1b1aada46

    Merge releases/v3 into releases/v2
    aibaars authored Mar 22, 2024
    Copy the full SHA
    a82bad7 View commit details
  11. Merge pull request #2209 from github/mergeback/v3.24.9-to-main-1b1aada4

    Mergeback v3.24.9 refs/heads/releases/v3 into main
    aibaars authored Mar 22, 2024
    Copy the full SHA
    3d81734 View commit details
  12. Copy the full SHA
    a12b868 View commit details
  13. Copy the full SHA
    ccc609b View commit details
  14. Copy the full SHA
    7e30c62 View commit details
  15. Copy the full SHA
    2bbafcd View commit details
  16. Copy the full SHA
    e20c273 View commit details

Commits on Mar 25, 2024

  1. Copy the full SHA
    6ac5753 View commit details
  2. Use runTool for mergeResults

    koesie10 committed Mar 25, 2024
    Copy the full SHA
    70aa50b View commit details
  3. Copy the full SHA
    3bd271c View commit details
  4. Copy the full SHA
    a0a63a2 View commit details
  5. Change log levels

    koesie10 committed Mar 25, 2024
    Copy the full SHA
    3c4b8bc View commit details
  6. Copy the full SHA
    82b82e5 View commit details
  7. Bump the npm group with 3 updates

    Bumps the npm group with 3 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) and [typescript](https://github.com/Microsoft/TypeScript).
    
    
    Updates `@typescript-eslint/eslint-plugin` from 7.3.0 to 7.3.1
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.3.1/packages/eslint-plugin)
    
    Updates `@typescript-eslint/parser` from 7.3.0 to 7.3.1
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.3.1/packages/parser)
    
    Updates `typescript` from 5.4.2 to 5.4.3
    - [Release notes](https://github.com/Microsoft/TypeScript/releases)
    - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
    - [Commits](microsoft/TypeScript@v5.4.2...v5.4.3)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/eslint-plugin"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: npm
    - dependency-name: "@typescript-eslint/parser"
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: npm
    - dependency-name: typescript
      dependency-type: direct:development
      update-type: version-update:semver-patch
      dependency-group: npm
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 25, 2024
    Copy the full SHA
    155888c View commit details
  8. Copy the full SHA
    a99c623 View commit details
  9. Merge pull request #2211 from github/dependabot/npm_and_yarn/npm-2d63…

    …6056e1
    
    Bump the npm group with 3 updates
    angelapwen authored Mar 25, 2024
    Copy the full SHA
    956f09c View commit details

Commits on Mar 26, 2024

  1. Copy the full SHA
    58194bf View commit details
  2. Copy the full SHA
    f835435 View commit details
  3. Copy the full SHA
    016720d View commit details

Commits on Mar 27, 2024

  1. Merge pull request #2199 from github/koesie10/cli-sarif-merge

    Use `github merge-results` command for merging SARIF files
    koesie10 authored Mar 27, 2024
    Copy the full SHA
    84ba7fb View commit details

Commits on Apr 1, 2024

  1. Bump the npm group with 2 updates

    Bumps the npm group with 2 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) and [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser).
    
    
    Updates `@typescript-eslint/eslint-plugin` from 7.3.1 to 7.4.0
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.4.0/packages/eslint-plugin)
    
    Updates `@typescript-eslint/parser` from 7.3.1 to 7.4.0
    - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
    - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
    - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.4.0/packages/parser)
    
    ---
    updated-dependencies:
    - dependency-name: "@typescript-eslint/eslint-plugin"
      dependency-type: direct:development
      update-type: version-update:semver-minor
      dependency-group: npm
    - dependency-name: "@typescript-eslint/parser"
      dependency-type: direct:development
      update-type: version-update:semver-minor
      dependency-group: npm
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 1, 2024
    Copy the full SHA
    048b508 View commit details
Showing 2,397 changed files with 270,190 additions and 496,486 deletions.
10 changes: 2 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -41,29 +41,23 @@
"ignoreTemplateLiterals": true
}],
"no-async-foreach/no-async-foreach": "error",
"no-console": "off",
"no-sequences": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/no-shadow": "error",
"one-var": ["error", "never"]
},
"overrides": [{
// "temporarily downgraded during transition to eslint
"files": "**",
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"func-style": "off",
"sort-imports": "off"
"func-style": "off"
}
}],
"settings": {
11 changes: 10 additions & 1 deletion .github/actions/check-codescanning-config/action.yml
Original file line number Diff line number Diff line change
@@ -29,7 +29,16 @@ inputs:
tools:
required: true
description: |
The url of codeql to use.
The version of CodeQL passed to the `tools` input of the init action.
This can be any of the following:
- A local path to a tarball containing the CodeQL tools, or
- A URL to a GitHub release assets containing the CodeQL tools, or
- A special value `linked` which is forcing the use of the CodeQL tools
that the action has been bundled with.
If not specified, the Action will check in several places until it finds
the CodeQL tools.
runs:
using: composite
15 changes: 12 additions & 3 deletions .github/actions/prepare-test/action.yml
Original file line number Diff line number Diff line change
@@ -2,12 +2,16 @@ name: "Prepare test"
description: Performs some preparation to run tests
inputs:
version:
description: "The version of the CodeQL CLI to use. Can be 'latest', 'default', 'nightly-latest', 'nightly-YYYY-MM-DD', or 'stable-YYYY-MM-DD'."
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly-latest', 'nightly-YYYY-MM-DD', or 'stable-YYYY-MM-DD'."
required: true
use-all-platform-bundle:
description: "If true, we output a tools URL with codeql-bundle.tar.gz file rather than platform-specific URL"
default: 'false'
required: false
setup-kotlin:
description: "If true, we setup kotlin"
default: 'true'
required: true
outputs:
tools-url:
description: "The value that should be passed as the 'tools' input of the 'init' step."
@@ -50,11 +54,16 @@ runs:
elif [[ ${{ inputs.version }} == *"stable"* ]]; then
version=`echo ${{ inputs.version }} | sed -e 's/^.*\-//'`
echo "tools-url=https://github.com/github/codeql-action/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.version }} == "latest" ]]; then
echo "tools-url=latest" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.version }} == "linked" ]]; then
echo "tools-url=linked" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.version }} == "default" ]]; then
echo "tools-url=" >> $GITHUB_OUTPUT
else
echo "::error::Unrecognized version specified!"
exit 1
fi
- uses: fwilhe2/setup-kotlin@9c245a6425255f5e98ba1ce6c15d31fce7eca9da
if: ${{ inputs.setup-kotlin == 'true' }}
with:
version: 1.8.21
12 changes: 10 additions & 2 deletions .github/actions/query-filter-test/action.yml
Original file line number Diff line number Diff line change
@@ -23,7 +23,16 @@ inputs:
tools:
required: true
description: |
The url of codeql to use.
The version of CodeQL passed to the `tools` input of the init action.
This can be any of the following:
- A local path to a tarball containing the CodeQL tools, or
- A URL to a GitHub release assets containing the CodeQL tools, or
- A special value `linked` which is forcing the use of the CodeQL tools
that the action has been bundled with.
If not specified, the Action will check in several places until it finds
the CodeQL tools.
runs:
using: composite
@@ -39,7 +48,6 @@ runs:
- uses: ./../action/analyze
with:
output: ${{ runner.temp }}/results
upload-database: false
upload: never
env:
CODEQL_ACTION_TEST_MODE: "true"
4 changes: 2 additions & 2 deletions .github/actions/release-initialise/action.yml
Original file line number Diff line number Diff line change
@@ -18,12 +18,12 @@ runs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyGithub==1.55 requests
pip install PyGithub==2.3.0 requests
shell: bash

- name: Update git config
2 changes: 1 addition & 1 deletion .github/actions/setup-swift/action.yml
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ runs:
fi
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
- uses: swift-actions/setup-swift@cdbe0f7f4c77929b6580e71983e8606e55ffe7e4 # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test.
- uses: redsun82/setup-swift@b2b6f77ab14f6a9b136b520dc53ec8eca27d2b99 # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test.
if: runner.os == 'Linux' && steps.get_swift_version.outputs.version != 'null'
with:
swift-version: "${{ steps.get_swift_version.outputs.version }}"
29 changes: 22 additions & 7 deletions .github/update-release-branch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import datetime
import fileinput
import re
from github import Github
import json
@@ -171,6 +172,19 @@ def get_current_version():
with open('package.json', 'r') as f:
return json.load(f)['version']

# `npm version` doesn't always work because of merge conflicts, so we
# replace the version in package.json textually.
def replace_version_package_json(prev_version, new_version):
prev_line_is_codeql = False
for line in fileinput.input('package.json', inplace = True, encoding='utf-8'):
if prev_line_is_codeql and f'\"version\": \"{prev_version}\"' in line:
print(line.replace(prev_version, new_version), end='')
else:
prev_line_is_codeql = False
print(line, end='')
if '\"name\": \"codeql\",' in line:
prev_line_is_codeql = True

def get_today_string():
today = datetime.datetime.today()
return '{:%d %b %Y}'.format(today)
@@ -186,16 +200,17 @@ def process_changelog_for_backports(source_branch_major_version, target_branch_m
with open('CHANGELOG.md', 'r') as f:

# until we find the first section, just duplicate all lines
while True:
found_first_section = False
while not found_first_section:
line = f.readline()
if not line:
raise Exception('Could not find any change sections in CHANGELOG.md') # EOF

output += line
if line.startswith('## '):
line = line.replace(f'## {source_branch_major_version}', f'## {target_branch_major_version}')
# we have found the first section, so now handle things differently
break
found_first_section = True

output += line

# found_content tracks whether we hit two headings in a row
found_content = False
@@ -373,9 +388,9 @@ def main():
run_git('commit', '--no-edit')

# Migrate the package version number from a vLatest version number to a vOlder version number
print(f'Setting version number to {version}')
subprocess.check_output(['npm', 'version', version, '--no-git-tag-version'])
run_git('add', 'package.json', 'package-lock.json')
print(f'Setting version number to {version} in package.json')
replace_version_package_json(get_current_version(), version) # We rely on the `Update dependencies` workflow to update package-lock.json
run_git('add', 'package.json')

# Migrate the changelog notes from vLatest version numbers to vOlder version numbers
print(f'Migrating changelog notes from v{source_branch_major_version} to v{target_branch_major_version}')
85 changes: 40 additions & 45 deletions .github/workflows/__all-platform-bundle.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading