Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
f8fb310
Resolve supported languages using CodeQL CLI
henrymercer Aug 28, 2025
d981505
Add log for supported languages
henrymercer Aug 28, 2025
71410c6
Enable feature in CI for testing
henrymercer Sep 5, 2025
f11caf4
Override `brace-expansion` from `2.0.1` to `2.0.2`
redsun82 Sep 8, 2025
16f15bc
Merge branch 'main' into redsun82/update-brace-expansion
redsun82 Sep 8, 2025
d42097d
Build
redsun82 Sep 8, 2025
1a80c9b
Bump the actions group with 4 updates
dependabot[bot] Sep 8, 2025
1b8f0ff
Set `shell: bash` by default on all workflows
redsun82 Sep 9, 2025
0c065fa
Sort out windows CRLF mess
redsun82 Sep 9, 2025
c778749
fix `codeql.yml` codeql invocation on windows
redsun82 Sep 9, 2025
ed9d73b
Alphabetically order `ToolsFeature`
henrymercer Sep 9, 2025
436471d
Initial plan
Copilot Sep 9, 2025
3bf58bb
Merge branch 'main' into redsun82/fix-windows-ci
mbg Sep 9, 2025
8d31b53
Add sync-back automation for Dependabot action version updates
Copilot Sep 10, 2025
bb98ff4
Validate workflow to check that all `codeql-action` versions are the …
mbg Sep 10, 2025
4f56152
Store and check action version in `Config`
mbg Sep 10, 2025
754f2e1
Simplify `step.uses` condition
mbg Sep 10, 2025
0487de3
Update src/config-utils.test.ts
mbg Sep 10, 2025
f77ed60
Improve sync-back automation with automatic action detection, comment…
Copilot Sep 10, 2025
5d79536
Remove regular workflow file updates from sync-back script
Copilot Sep 10, 2025
f537110
Add sync-back script execution to rebuild workflow
Copilot Sep 10, 2025
d9bc711
Rename script for consistency
henrymercer Sep 10, 2025
d08f929
Run test script in CI
henrymercer Sep 10, 2025
cde0d79
Run sync back script separately
henrymercer Sep 10, 2025
1343eba
Remove unused imports
henrymercer Sep 10, 2025
d0f02ad
Simplify import
henrymercer Sep 10, 2025
c9d2739
Use more generic regexp for `sync.py` changes
henrymercer Sep 10, 2025
191d3de
Update changelog and version after v3.30.3
github-actions[bot] Sep 10, 2025
25c3218
Rebuild
github-actions[bot] Sep 10, 2025
25e54df
Merge pull request #3105 from github/mergeback/v3.30.3-to-main-192325c8
cklin Sep 10, 2025
0d058cd
Merge pull request #3099 from github/mbg/validate-action-version-in-w…
mbg Sep 11, 2025
1479235
Merge pull request #3100 from github/mbg/config-version
mbg Sep 11, 2025
21a1feb
Add changenote for improved version consistency checks
mbg Sep 11, 2025
148e76a
Merge pull request #3108 from github/mbg/changelog/workflow-validation
mbg Sep 11, 2025
ffcbb4c
Move `UPDATEJOB_PROXY` constants to `start-proxy.ts`
mbg Sep 11, 2025
4e2e64a
init-action: save updated config
cklin Sep 11, 2025
d797efb
Merge branch 'main' into redsun82/fix-windows-ci
redsun82 Sep 11, 2025
856e1e5
Address review
redsun82 Sep 11, 2025
4e1dadc
Fix accidental removal of `- shell: bash` lines
redsun82 Sep 11, 2025
9df2342
Search release pointed at by `defaults.json` for registry proxy artifact
mbg Sep 11, 2025
5c30ae4
Stop saving config in initConfig()
cklin Sep 11, 2025
0d33fd9
Merge pull request #3109 from github/cklin/init-save-updated-config
cklin Sep 11, 2025
df1fe23
Merge pull request #3083 from github/henrymercer/resolve-languages-de…
henrymercer Sep 12, 2025
e2636d2
Change "current release" to "linked release"
mbg Sep 12, 2025
0abf548
Add feature flag to roll out JAR minimization in the Java extractor
nickrolfe Sep 10, 2025
3ca9525
Add changelog entry for Java dependency minimization rollout
nickrolfe Sep 11, 2025
dc9a47d
Merge pull request #3110 from github/mbg/proxy/fetch-from-release
mbg Sep 12, 2025
a124438
Merge branch 'main' into redsun82/update-brace-expansion
redsun82 Sep 12, 2025
185266a
Merge pull request #3107 from github/nickrolfe/minimize-jars
nickrolfe Sep 12, 2025
f92cc3a
Merge pull request #3065 from github/redsun82/update-brace-expansion
redsun82 Sep 12, 2025
2b7d487
Update .github/workflows/codeql.yml
redsun82 Sep 12, 2025
aa90e97
Merge pull request #3091 from github/redsun82/fix-windows-ci
redsun82 Sep 12, 2025
793fe17
CI: Configure Python analysis
henrymercer Sep 15, 2025
73ead84
Reorder strategy properties
henrymercer Sep 15, 2025
61b8b63
Only upload a single matrix case for JS
henrymercer Sep 15, 2025
8105843
Specify `paths-ignore` for other languages
henrymercer Sep 15, 2025
bce0fa7
Remove build mode from matrix
henrymercer Sep 15, 2025
4014b75
Only enable JAVA dependency minimisation when caching is enabled
nickrolfe Sep 15, 2025
1069ace
Update .github/workflows/codeql.yml
henrymercer Sep 15, 2025
77c3d25
Merge pull request #3112 from github/henrymercer/scan-python
henrymercer Sep 15, 2025
86f23c3
Run PR checks over CodeQL v2.22 release series
henrymercer Sep 15, 2025
8279538
Merge pull request #3114 from github/henrymercer/pr-checks-codeql-2.22
henrymercer Sep 15, 2025
9e5383b
Merge pull request #3113 from github/nickrolfe/minimize-jars-followup
mbg Sep 15, 2025
0b263ec
Bump uuid from 12.0.0 to 13.0.0 in the npm group
dependabot[bot] Sep 15, 2025
668f0f0
Rebuild
github-actions[bot] Sep 15, 2025
573acd9
Merge pull request #3115 from github/dependabot/npm_and_yarn/npm-75b7…
henrymercer Sep 15, 2025
242ca1c
Update ref description in action.ymls to include expected format for …
felickz Sep 17, 2025
2f35a47
Update upload-sarif/action.yml
felickz Sep 17, 2025
b73659a
Merge pull request #3122 from felickz/main
henrymercer Sep 18, 2025
35454d3
Refactor CQ SARIF upload in `upload-sarif` into a function
mbg Sep 18, 2025
a6161a8
Call `lstatSync` on `sarifPath` earlier and check that the path exist…
mbg Sep 18, 2025
8185897
Rename withTimeout() to waitForResultWithTimeLimit()
cklin Sep 18, 2025
c8e017d
Move `isDirectory` check into `findAndUpload`
mbg Sep 18, 2025
696b467
Handle single file case in `findAndUpload`
mbg Sep 18, 2025
a2ce099
Use `findAndUpload` for Code Scanning
mbg Sep 18, 2025
12dda79
Merge pull request #3124 from github/cklin/rename-withtimeout
cklin Sep 18, 2025
d378195
Add new `sarif-ids` output to `upload-sarif` action
mbg Sep 18, 2025
7bea0e2
Fix outdated comment
mbg Sep 18, 2025
e33b0ab
Update `upload-quality-sarif` check to only use `code-quality`
mbg Sep 18, 2025
6249793
Disable `cpp` in `upload-quality-sarif` check
mbg Sep 18, 2025
db37d92
Fix condition
mbg Sep 18, 2025
3305d21
Move `UserConfig` to its own file
mbg Sep 19, 2025
6222edf
Move error messages from `config-utils` to their own file
mbg Sep 19, 2025
ddc6d54
Move `AugmentationProperties` out of `config-utils`
mbg Sep 19, 2025
dc1166c
Move tests for functions now in `db-config`
mbg Sep 19, 2025
80273e2
Overlay: use restoreCache() timeout
cklin Sep 19, 2025
c22ae04
Merge pull request #3125 from github/cklin/overlay-restore-timeout
cklin Sep 19, 2025
0337c4c
Merge pull request #3123 from github/mbg/fix/upload-sarif-cq-only
mbg Sep 19, 2025
96ca55b
Ava: Run all tests in `src/` directory
mbg Sep 20, 2025
4f9b2f7
Add initial client for repository properties
mbg Sep 19, 2025
3b00d03
Load repository properties and store them in the `Config`
mbg Sep 19, 2025
6150aff
Add and use `QuerySpec` type
mbg Sep 19, 2025
ed216a0
Include queries from repo properties in `AugmentationProperties`
mbg Sep 20, 2025
781a65a
Use appropriate error message in `parseQueriesFromInput` for repo pro…
mbg Sep 20, 2025
1bfb67d
Refactor combining queries into its own function
mbg Sep 20, 2025
d14a212
Include repo property queries in `combineQueries`
mbg Sep 20, 2025
c7eb488
Add tests
mbg Sep 20, 2025
a067418
Ava: Run all tests in `src/` directory
mbg Sep 20, 2025
6fcf631
Add `concurrency` settings to PR checks
mbg Sep 20, 2025
2d8d639
Add missing "not" in comment
mbg Sep 20, 2025
0c4919d
Merge pull request #3128 from github/mbg/ci/concurrency
mbg Sep 22, 2025
0f4529e
Enable requesting latest nightly with "tools: nightly"
henrymercer Sep 22, 2025
9e8cbee
Process nightly CI runs using `tools: nightly`
henrymercer Sep 22, 2025
67427c6
Update prepare-test docs
henrymercer Sep 22, 2025
39be66a
Add log message
henrymercer Sep 22, 2025
48017e9
Add changelog note
henrymercer Sep 22, 2025
a25c57c
Wrap API call to provide better error message
henrymercer Sep 22, 2025
79e0afb
Run local CodeQL check using linked bundle
henrymercer Sep 22, 2025
6117099
Merge pull request #3127 from github/mbg/refactor/db-config-and-errors
mbg Sep 22, 2025
bd51630
Specify bundle URL in local bundle PR check
henrymercer Sep 22, 2025
e2e36b1
Add helper function for reserved tools values
henrymercer Sep 22, 2025
d46a178
Sort `queries` array in `check-codescanning-config`
mbg Sep 22, 2025
4901f54
Lint
henrymercer Sep 22, 2025
6bb4ad3
Update .github/actions/check-codescanning-config/index.ts
mbg Sep 22, 2025
5ab5aef
Document `nightly` tools input in `action.yml`
henrymercer Sep 22, 2025
54746c8
Fix `expected-config-file-contents`
mbg Sep 22, 2025
2b07444
Merge pull request #3130 from github/henrymercer/request-nightly
henrymercer Sep 22, 2025
6b6d1dd
Update required checks: Fail on error
henrymercer Sep 22, 2025
8a9ef89
Update required checks: Fail if no check runs found
henrymercer Sep 22, 2025
33da5f0
Use jq to check array length
henrymercer Sep 22, 2025
b8806ec
Merge pull request #3131 from github/henrymercer/required-checks-safety
henrymercer Sep 22, 2025
5df1d6e
Remove redundant check
henrymercer Sep 22, 2025
ee37081
Remove docs about sync back workflow
henrymercer Sep 22, 2025
5065ea8
Improve comment
henrymercer Sep 22, 2025
86ed211
Note limitation of looking for `uses: ` in pattern
henrymercer Sep 22, 2025
bb07e07
Remove trailing whitespace
henrymercer Sep 22, 2025
8df0043
Remove half baked dry run functionality
henrymercer Sep 22, 2025
fbe415d
Remove misleading test case
henrymercer Sep 22, 2025
d9ad6a3
Error if `sync.py` not found
henrymercer Sep 22, 2025
e9d7b2d
Remove unnecessary test cases
henrymercer Sep 22, 2025
889d482
Add logging to `combineQueries`
mbg Sep 22, 2025
05310c6
Ignore repository property query config if CQ-only analysis
mbg Sep 22, 2025
3837f2e
Bump the npm group with 5 updates
dependabot[bot] Sep 22, 2025
8a84c17
Rebuild
github-actions[bot] Sep 22, 2025
b4f966a
Add FF to control whether to fetch repository properties
mbg Sep 22, 2025
40262b1
Add `getRepositoryProperties` to `api-client`, for easier mocking
mbg Sep 23, 2025
07920e8
Fix using `keys` instead of `values`
mbg Sep 23, 2025
7f73f8c
Add unit tests for `properties` module
mbg Sep 23, 2025
0a75581
Check that we are on dotcom
mbg Sep 23, 2025
205b6ba
Rebuild
mbg Sep 23, 2025
7f44048
Merge pull request #3133 from github/dependabot/npm_and_yarn/npm-4684…
mbg Sep 23, 2025
4178e15
Only disable `loadPropertiesFromApi` on GHES
mbg Sep 23, 2025
54bbe82
Always log when queries are configured in the repository properties
mbg Sep 23, 2025
5a4aa83
Always log when combining queries is disabled in the repo properties
mbg Sep 23, 2025
665891b
Merge pull request #3126 from github/mbg/add/properties-api
mbg Sep 23, 2025
2885255
Only sync back versions on Dependabot update PRs
henrymercer Sep 23, 2025
e2f4bf6
Bump minimum CLI version for overlay analysis
kaspersv Sep 23, 2025
5c8c613
Merge pull request #3062 from github/kaspersv/bump-minimum-overlay-co…
kaspersv Sep 23, 2025
2bbfe97
Update default bundle to codeql-bundle-v2.23.1
github-actions[bot] Sep 17, 2025
e8921f7
Add changelog note
github-actions[bot] Sep 17, 2025
eb05da9
Specify `Accept` header for `toolcache.downloadTool`
mbg Sep 17, 2025
c656a25
Merge pull request #3094 from github/copilot/stack-pr-3088
henrymercer Sep 23, 2025
944aa7d
Merge pull request #3088 from github/dependabot/github_actions/action…
henrymercer Sep 23, 2025
1ba789f
Bump the actions group across 1 directory with 2 updates
dependabot[bot] Sep 23, 2025
a29637a
Rebuild
github-actions[bot] Sep 23, 2025
78e8dc0
Trigger sync back script automatically
henrymercer Sep 23, 2025
d34e247
Enable Dependabot updates for other Actions in `.github/actions`
henrymercer Sep 23, 2025
d92eef9
Merge pull request #3138 from github/dependabot/github_actions/action…
henrymercer Sep 23, 2025
c6e30a2
Merge pull request #3118 from github/update-bundle/codeql-bundle-v2.23.1
igfoo Sep 23, 2025
0890b56
Merge pull request #3140 from github/henrymercer/dependabot-rebuild-a…
henrymercer Sep 24, 2025
c6674f9
Bump the npm group with 3 updates
dependabot[bot] Sep 24, 2025
f54c1c0
Rebuild
github-actions[bot] Sep 24, 2025
a8eeef9
Merge pull request #3143 from github/dependabot/npm_and_yarn/npm-1a46…
henrymercer Sep 24, 2025
86de17c
Update Dependabot configuration for GitHub Actions
henrymercer Sep 24, 2025
cec0b17
Skip PR checks for events triggered by Dependabot
mbg Sep 24, 2025
efcf614
Refactor assembling `Authorization` header value into its own function
mbg Sep 24, 2025
d43f46c
Set `Authorization` header for downloading `update-job-proxy`
mbg Sep 24, 2025
3183e6b
Skip non-generated workflows for Dependabot
mbg Sep 24, 2025
5a9c44b
Merge pull request #3145 from github/mbg/ci/skip-checks-for-dependabot
mbg Sep 24, 2025
4e820a4
Apply review feedback
mbg Sep 24, 2025
8e25b34
Merge pull request #3144 from github/henrymercer/dependabot
henrymercer Sep 24, 2025
50a31df
Bump @actions/cache from 4.0.5 to 4.1.0 in the npm group
dependabot[bot] Sep 24, 2025
f134e09
Rebuild
github-actions[bot] Sep 24, 2025
435f474
Merge pull request #3147 from github/dependabot/npm_and_yarn/npm-76d2…
henrymercer Sep 24, 2025
6ccec2a
Remove `url` from log messages
mbg Sep 24, 2025
39842d8
Merge pull request #3146 from github/mbg/start-proxy/authenticate
mbg Sep 24, 2025
1e72556
build: use --serial in 'just test_file'
cklin Sep 24, 2025
e4b85ab
Merge pull request #3148 from github/cklin/just-test_file-serial
cklin Sep 24, 2025
333a673
Update changelog for v3.30.4
github-actions[bot] Sep 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/actions/check-codescanning-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ import * as assert from 'assert'

const actualConfig = loadActualConfig()

function sortConfigArrays(config) {
for (const key of Object.keys(config)) {
const value = config[key];
if (key === 'queries' && Array.isArray(value)) {
config[key] = value.sort();
}
}
return config;
}

const rawExpectedConfig = process.argv[3].trim()
if (!rawExpectedConfig) {
core.setFailed('No expected configuration provided')
Expand All @@ -18,8 +28,8 @@ if (!rawExpectedConfig) {
const expectedConfig = rawExpectedConfig ? JSON.parse(rawExpectedConfig) : undefined;

assert.deepStrictEqual(
actualConfig,
expectedConfig,
sortConfigArrays(actualConfig),
sortConfigArrays(expectedConfig),
'Expected configuration does not match actual configuration'
);

Expand Down
26 changes: 10 additions & 16 deletions .github/actions/prepare-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Prepare test"
description: Performs some preparation to run tests
inputs:
version:
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z"
description: "The version of the CodeQL CLI to use. Can be 'linked', 'default', 'nightly', 'nightly-latest', 'nightly-YYYYMMDD', or 'stable-vX.Y.Z"
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"
Expand Down Expand Up @@ -35,37 +35,31 @@ runs:
run: |
set -e # Fail this Action if `gh release list` fails.

if [[ "$VERSION" == "linked" ]]; then
if [[ "$VERSION" == "nightly" || "$VERSION" == "nightly-latest" ]]; then
echo "tools-url=nightly" >> "$GITHUB_OUTPUT"
exit 0
elif [[ "$VERSION" == "linked" ]]; then
echo "tools-url=linked" >> "$GITHUB_OUTPUT"
exit 0
elif [[ "$VERSION" == "default" ]]; then
echo "tools-url=" >> "$GITHUB_OUTPUT"
exit 0
fi

if [[ "$VERSION" == "nightly-latest" && "$RUNNER_OS" != "Windows" ]]; then
extension="tar.zst"
else
extension="tar.gz"
fi

if [[ "$USE_ALL_PLATFORM_BUNDLE" == "true" ]]; then
artifact_name="codeql-bundle.$extension"
artifact_name="codeql-bundle.tar.gz"
elif [[ "$RUNNER_OS" == "Linux" ]]; then
artifact_name="codeql-bundle-linux64.$extension"
artifact_name="codeql-bundle-linux64.tar.gz"
elif [[ "$RUNNER_OS" == "macOS" ]]; then
artifact_name="codeql-bundle-osx64.$extension"
artifact_name="codeql-bundle-osx64.tar.gz"
elif [[ "$RUNNER_OS" == "Windows" ]]; then
artifact_name="codeql-bundle-win64.$extension"
artifact_name="codeql-bundle-win64.tar.gz"
else
echo "::error::Unrecognized OS $RUNNER_OS"
exit 1
fi

if [[ "$VERSION" == "nightly-latest" ]]; then
tag=`gh release list --repo dsp-testing/codeql-cli-nightlies -L 1 | cut -f 3`
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$tag/$artifact_name" >> $GITHUB_OUTPUT
elif [[ "$VERSION" == *"nightly"* ]]; then
if [[ "$VERSION" == *"nightly"* ]]; then
version=`echo "$VERSION" | sed -e 's/^.*\-//'`
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/codeql-bundle-$version/$artifact_name" >> $GITHUB_OUTPUT
elif [[ "$VERSION" == *"stable"* ]]; then
Expand Down
4 changes: 0 additions & 4 deletions .github/codeql/codeql-actions-config.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ queries:
# we include both even though one is a superset of the
# other, because we're testing the parsing logic and
# that the suites exist in the codeql bundle.
- uses: security-and-quality
- uses: security-experimental
- uses: security-extended
- uses: security-and-quality
paths-ignore:
- tests
- lib
- tests
14 changes: 5 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,14 @@ updates:
patterns:
- "*"
- package-ecosystem: github-actions
directory: "/"
directories:
- "/.github/workflows"
- "/.github/actions"
schedule:
interval: weekly
labels:
- Rebuild
groups:
actions:
patterns:
- "*"
- package-ecosystem: github-actions
directory: "/.github/actions/setup-swift/" # All subdirectories outside of "/.github/workflows" must be explicitly included.
schedule:
interval: weekly
groups:
actions-setup-swift:
patterns:
- "*"
10 changes: 8 additions & 2 deletions .github/workflows/__all-platform-bundle.yml

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

10 changes: 8 additions & 2 deletions .github/workflows/__analyze-ref-input.yml

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

8 changes: 7 additions & 1 deletion .github/workflows/__autobuild-action.yml

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

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

9 changes: 7 additions & 2 deletions .github/workflows/__autobuild-direct-tracing.yml

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

7 changes: 7 additions & 0 deletions .github/workflows/__build-mode-autobuild.yml

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

10 changes: 8 additions & 2 deletions .github/workflows/__build-mode-manual.yml

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

7 changes: 7 additions & 0 deletions .github/workflows/__build-mode-none.yml

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

Loading
Loading