Skip to content

Commit b79a976

Browse files
committed
Merge remote-tracking branch 'origin/main' into mbg/analysis-kinds/warn-on-non-cs-advanced-setup
2 parents 4235601 + 26a1e57 commit b79a976

88 files changed

Lines changed: 76810 additions & 1091386 deletions

File tree

Some content is hidden

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

.github/update-release-branch.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,23 @@
1616
"""
1717

1818
# NB: This exact commit message is used to find commits for reverting during backports.
19-
# Changing it requires a transition period where both old and new versions are supported.
19+
# Changing it requires a transition period where both old and new versions are supported.
2020
BACKPORT_COMMIT_MESSAGE = 'Update version and changelog for v'
2121

2222
# Name of the remote
2323
ORIGIN = 'origin'
2424

25+
# Environment variables to check for a GitHub API token.
26+
TOKEN_ENVIRONMENT_VARIABLES = ('GH_TOKEN', 'GITHUB_TOKEN')
27+
28+
# Gets a GitHub API token from one of the supported environment variables.
29+
def get_github_token():
30+
for variable_name in TOKEN_ENVIRONMENT_VARIABLES:
31+
token = os.environ.get(variable_name, '').strip()
32+
if token:
33+
return token
34+
raise Exception('Missing GitHub token. Set GITHUB_TOKEN or GH_TOKEN.')
35+
2536
# Runs git with the given args and returns the stdout.
2637
# Raises an error if git does not exit successfully (unless passed
2738
# allow_non_zero_exit_code=True).
@@ -270,12 +281,6 @@ def update_changelog(version):
270281
def main():
271282
parser = argparse.ArgumentParser('update-release-branch.py')
272283

273-
parser.add_argument(
274-
'--github-token',
275-
type=str,
276-
required=True,
277-
help='GitHub token, typically from GitHub Actions.'
278-
)
279284
parser.add_argument(
280285
'--repository-nwo',
281286
type=str,
@@ -313,7 +318,7 @@ def main():
313318
target_branch = args.target_branch
314319
is_primary_release = args.is_primary_release
315320

316-
repo = Github(args.github_token).get_repo(args.repository_nwo)
321+
repo = Github(get_github_token()).get_repo(args.repository_nwo)
317322

318323
# the target branch will be of the form releases/vN, where N is the major version number
319324
target_branch_major_version = target_branch.strip('releases/v')

.github/workflows/__go-tracing-autobuilder.yml

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

.github/workflows/__go-tracing-custom-build-steps.yml

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

.github/workflows/__go-tracing-legacy-workflow.yml

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

.github/workflows/__multi-language-autodetect.yml

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

.github/workflows/__rust.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__swift-autobuild.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
strategy:
7878
fail-fast: false
7979
matrix:
80-
os: [ubuntu-22.04,ubuntu-24.04,windows-2022,windows-2025,macos-14,macos-15]
80+
os: [ubuntu-22.04,ubuntu-24.04,windows-2022,windows-2025,macos-14-xlarge,macos-15-xlarge]
8181
tools: ${{ fromJson(needs.check-codeql-versions.outputs.versions) }}
8282
runs-on: ${{ matrix.os }}
8383

.github/workflows/codescanning-config-cli.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ env:
66
# Diff informed queries add an additional query filter which is not yet
77
# taken into account by these tests.
88
CODEQL_ACTION_DIFF_INFORMED_QUERIES: false
9-
# Specify overlay enablement manually to ensure stability around the exclude-from-incremental
10-
# query filter. Here we only enable for the default code scanning suite.
11-
CODEQL_ACTION_OVERLAY_ANALYSIS: true
12-
CODEQL_ACTION_OVERLAY_ANALYSIS_JAVASCRIPT: false
13-
CODEQL_ACTION_OVERLAY_ANALYSIS_CODE_SCANNING_JAVASCRIPT: true
14-
CODEQL_ACTION_OVERLAY_ANALYSIS_STATUS_CHECK: false
15-
CODEQL_ACTION_OVERLAY_ANALYSIS_SKIP_RESOURCE_CHECKS: true
169

1710
on:
1811
push:
@@ -79,33 +72,13 @@ jobs:
7972
with:
8073
version: ${{ matrix.version }}
8174

82-
# On PRs, overlay analysis may change the config that is passed to the CLI.
83-
# Therefore, we have two variants of the following test, one for PRs and one for other events.
84-
- name: Empty file (non-PR)
85-
if: github.event_name != 'pull_request'
75+
- name: Empty file
8676
uses: ./../action/.github/actions/check-codescanning-config
8777
with:
8878
expected-config-file-contents: "{}"
8979
languages: javascript
9080
tools: ${{ steps.prepare-test.outputs.tools-url }}
9181

92-
- name: Empty file (PR)
93-
if: github.event_name == 'pull_request'
94-
uses: ./../action/.github/actions/check-codescanning-config
95-
with:
96-
expected-config-file-contents: |
97-
{
98-
"query-filters": [
99-
{
100-
"exclude": {
101-
"tags": "exclude-from-incremental"
102-
}
103-
}
104-
]
105-
}
106-
languages: javascript
107-
tools: ${{ steps.prepare-test.outputs.tools-url }}
108-
10982
- name: Packs from input
11083
if: success() || failure()
11184
uses: ./../action/.github/actions/check-codescanning-config

.github/workflows/post-release-mergeback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
echo "::endgroup::"
132132
133133
- name: Generate token
134-
uses: actions/create-github-app-token@v3.1.1
134+
uses: actions/create-github-app-token@v3.2.0
135135
id: app-token
136136
with:
137137
app-id: ${{ vars.AUTOMATION_APP_ID }}

0 commit comments

Comments
 (0)