Skip to content

Commit 1443f58

Browse files
committed
chore: merge main into kaspersv/move-diff-range-absolute-path-conversion
2 parents 4eb2475 + b6dfacb commit 1443f58

File tree

236 files changed

+1151859
-810379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+1151859
-810379
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Verify that the best-effort debug artifact scan completed
2+
description: Verifies that the best-effort debug artifact scan completed successfully during tests
3+
runs:
4+
using: node24
5+
main: index.js
6+
post: post.js
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// The main step is a no-op, since we can only verify artifact scan completion in the post step.
2+
console.log("Will verify artifact scan completion in the post step.");
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Post step - runs after the workflow completes, when artifact scan has finished
2+
const process = require("process");
3+
4+
const scanFinished = process.env.CODEQL_ACTION_ARTIFACT_SCAN_FINISHED;
5+
6+
if (scanFinished !== "true") {
7+
console.error("Error: Best-effort artifact scan did not complete. Expected CODEQL_ACTION_ARTIFACT_SCAN_FINISHED=true");
8+
process.exit(1);
9+
}
10+
11+
console.log("✓ Best-effort artifact scan completed successfully");

.github/dependabot.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ updates:
44
directory: "/"
55
schedule:
66
interval: weekly
7+
cooldown:
8+
default-days: 7
9+
exclude:
10+
- "@actions/*"
711
labels:
812
- Rebuild
913
# Ignore incompatible dependency updates
1014
ignore:
11-
# There is a type incompatibility issue between v0.0.9 and our other dependencies.
12-
- dependency-name: "@octokit/plugin-retry"
13-
versions: ["~6.0.0"]
14-
# This is broken due to the way configuration files have changed.
15+
# This is broken due to the way configuration files have changed.
1516
# This might be fixed when we move to eslint v9.
1617
- dependency-name: "eslint-plugin-import"
1718
versions: [">=2.30.0"]
@@ -28,6 +29,10 @@ updates:
2829
- "/.github/actions"
2930
schedule:
3031
interval: weekly
32+
cooldown:
33+
default-days: 7
34+
exclude:
35+
- "actions/*"
3136
labels:
3237
- Rebuild
3338
groups:

.github/pull_request_template.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,25 @@ For internal use only. Please select the risk level of this change:
1818

1919
#### Which use cases does this change impact?
2020

21-
<!-- Delete options that don't apply. -->
21+
<!-- Delete options that don't apply. If in doubt, do not delete an option. -->
22+
23+
Workflow types:
24+
25+
- **Advanced setup** - Impacts users who have custom CodeQL workflows.
26+
- **Managed** - Impacts users with `dynamic` workflows (Default Setup, Code Quality, ...).
27+
28+
Products:
29+
30+
- **Code Scanning** - The changes impact analyses when `analysis-kinds: code-scanning`.
31+
- **Code Quality** - The changes impact analyses when `analysis-kinds: code-quality`.
32+
- **Other first-party** - The changes impact other first-party analyses.
33+
- **Third-party analyses** - The changes affect the `upload-sarif` action.
34+
35+
Environments:
2236

23-
- **Advanced setup** - Impacts users who have custom workflows.
24-
- **Default setup** - Impacts users who use default setup.
25-
- **Code Scanning** - Impacts Code Scanning (i.e. `analysis-kinds: code-scanning`).
26-
- **Code Quality** - Impacts Code Quality (i.e. `analysis-kinds: code-quality`).
27-
- **Third-party analyses** - Impacts third-party analyses (i.e. `upload-sarif`).
28-
- **GHES** - Impacts GitHub Enterprise Server.
37+
- **Dotcom** - Impacts CodeQL workflows on `github.com` and/or GitHub Enterprise Cloud with Data Residency.
38+
- **GHES** - Impacts CodeQL workflows on GitHub Enterprise Server.
39+
- **Testing/None** - This change does not impact any CodeQL workflows in production.
2940

3041
#### How did/will you validate this change?
3142

@@ -43,6 +54,7 @@ For internal use only. Please select the risk level of this change:
4354

4455
- **Feature flags** - All new or changed code paths can be fully disabled with corresponding feature flags.
4556
- **Rollback** - Change can only be disabled by rolling back the release or releasing a new version with a fix.
57+
- **Development/testing only** - This change cannot cause any failures in production.
4658
- **Other** - Please provide details.
4759

4860
#### How will you know if something goes wrong after this change is released?
@@ -54,6 +66,15 @@ For internal use only. Please select the risk level of this change:
5466
- **Alerts** - New or existing monitors will trip if something goes wrong with this change.
5567
- **Other** - Please provide details.
5668

69+
#### Are there any special considerations for merging or releasing this change?
70+
71+
<!--
72+
Consider whether this change depends on a different change in another repository that should be released first.
73+
-->
74+
75+
- **No special considerations** - This change can be merged at any time.
76+
- **Special considerations** - This change should only be merged once certain preconditions are met. Please provide details of those or link to this PR from an internal issue.
77+
5778
### Merge / deployment checklist
5879

5980
- Confirm this change is backwards compatible with existing workflows.

.github/update-release-branch.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ def open_pr(
7171
body.append('')
7272
body.append('Contains the following pull requests:')
7373
for pr in pull_requests:
74-
merger = get_merger_of_pr(repo, pr)
75-
body.append(f'- #{pr.number} (@{merger})')
74+
# Use PR author if they are GitHub staff, otherwise use the merger
75+
display_user = get_pr_author_if_staff(pr) or get_merger_of_pr(repo, pr)
76+
body.append(f'- #{pr.number} (@{display_user})')
7677

7778
# List all commits not part of a PR
7879
if len(commits_without_pull_requests) > 0:
@@ -168,6 +169,14 @@ def get_pr_for_commit(commit):
168169
def get_merger_of_pr(repo, pr):
169170
return repo.get_commit(pr.merge_commit_sha).author.login
170171

172+
# Get the PR author if they are GitHub staff, otherwise None.
173+
def get_pr_author_if_staff(pr):
174+
if pr.user is None:
175+
return None
176+
if getattr(pr.user, 'site_admin', False):
177+
return pr.user.login
178+
return None
179+
171180
def get_current_version():
172181
with open('package.json', 'r') as f:
173182
return json.load(f)['version']
@@ -181,9 +190,9 @@ def replace_version_package_json(prev_version, new_version):
181190
print(line.replace(prev_version, new_version), end='')
182191
else:
183192
prev_line_is_codeql = False
184-
print(line, end='')
193+
print(line, end='')
185194
if '\"name\": \"codeql\",' in line:
186-
prev_line_is_codeql = True
195+
prev_line_is_codeql = True
187196

188197
def get_today_string():
189198
today = datetime.datetime.today()

.github/workflows/__all-platform-bundle.yml

Lines changed: 21 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 30 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)