Merge main into releases/v2 by github-actions[bot] · Pull Request #2020 · github/codeql-action · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8a1e474
Update changelog and version after v2.22.8
github-actions[bot] Nov 23, 2023
3b5bd49
Update checked-in dependencies
github-actions[bot] Nov 23, 2023
2da9ad5
Merge pull request #2008 from github/mergeback/v2.22.8-to-main-407ffafa
aibaars Nov 23, 2023
4712487
Bump the npm group with 5 updates (#2010)
dependabot[bot] Nov 27, 2023
773bd9b
Exclude Dependabot updates workflow from required PR checks
henrymercer Nov 27, 2023
77605c7
Remove LGTM
henrymercer Nov 27, 2023
db40ac4
Merge pull request #2011 from github/henrymercer/exclude-dependabot-r…
henrymercer Nov 28, 2023
1d367b0
Improve error categorizations
henrymercer Dec 1, 2023
b929cca
Merge pull request #2012 from github/henrymercer/categorize-configura…
henrymercer Dec 1, 2023
cc940d7
Extract scanned languages using `--index-traceless-dbs`
henrymercer Dec 1, 2023
a16ac98
Merge pull request #2013 from github/henrymercer/index-traceless-dbs
henrymercer Dec 4, 2023
b7f289e
update release process to support multiple version
nickfyson Dec 4, 2023
bc50092
Bump the npm group with 4 updates (#2015)
dependabot[bot] Dec 4, 2023
2dbffae
add note in CONTRIBUTING.md on how to deprecate an action version
nickfyson Dec 4, 2023
65a2bb5
Merge branch 'main' into nickfyson/update-release-process
nickfyson Dec 4, 2023
784783d
Update supported GitHub Enterprise Server versions
cklin Dec 5, 2023
3675be0
Merge pull request #2017 from cklin/update-supported-enterprise-serve…
cklin Dec 5, 2023
3537bea
Apply suggestions from code review
nickfyson Dec 6, 2023
a6ea3c5
define backport commit message in constant
nickfyson Dec 6, 2023
57932be
remove unused function
nickfyson Dec 6, 2023
ee748cf
respond to more review comments
nickfyson Dec 6, 2023
47e90f2
Merge branch 'main' into nickfyson/update-release-process
nickfyson Dec 6, 2023
0e9a210
update workflows to run on all release branches
nickfyson Dec 6, 2023
e1d1fad
Merge pull request #2014 from github/nickfyson/update-release-process
nickfyson Dec 7, 2023
c6e24c9
Update changelog for v2.22.9
github-actions[bot] Dec 7, 2023
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
25 changes: 25 additions & 0 deletions .github/actions/release-branches/action.yml
48 changes: 48 additions & 0 deletions .github/actions/release-branches/release-branches.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import argparse
import json
import os
import subprocess

# Name of the remote
ORIGIN = 'origin'

OLDEST_SUPPORTED_MAJOR_VERSION = 2

def main():

parser = argparse.ArgumentParser()
parser.add_argument("--major-version", required=True, type=str, help="The major version of the release")
parser.add_argument("--latest-tag", required=True, type=str, help="The most recent tag published to the repository")
args = parser.parse_args()

major_version = args.major_version
latest_tag = args.latest_tag

print("major_version: " + major_version)
print("latest_tag: " + latest_tag)

# If this is a primary release, we backport to all supported branches,
# so we check whether the major_version taken from the package.json
# is greater than or equal to the latest tag pulled from the repo.
# For example...
# 'v1' >= 'v2' is False # we're operating from an older release branch and should not backport
# 'v2' >= 'v2' is True # the normal case where we're updating the current version
# 'v3' >= 'v2' is True # in this case we are making the first release of a new major version
consider_backports = ( major_version >= latest_tag.split(".")[0] )

with open(os.environ["GITHUB_OUTPUT"], "a") as f:

f.write(f"backport_source_branch=releases/{major_version}\n")

backport_target_branches = []

if consider_backports:
for i in range(int(major_version.strip("v"))-1, 0, -1):
branch_name = f"releases/v{i}"
if i >= OLDEST_SUPPORTED_MAJOR_VERSION:
backport_target_branches.append(branch_name)

f.write("backport_target_branches="+json.dumps(backport_target_branches)+"\n")

if __name__ == "__main__":
main()
33 changes: 33 additions & 0 deletions .github/actions/release-initialise/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Prepare release job'
description: 'Prepare for updating a release branch'

runs:
using: "composite"
steps:

- name: Dump environment
run: env
shell: bash

- name: Dump GitHub context
env:
GITHUB_CONTEXT: '${{ toJson(github) }}'
run: echo "$GITHUB_CONTEXT"
shell: bash

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8

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

- name: Update git config
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
shell: bash
169 changes: 143 additions & 26 deletions .github/update-release-branch.py
2 changes: 1 addition & 1 deletion .github/workflows/__all-platform-bundle.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/__analyze-ref-input.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/__autobuild-action.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/__config-export.yml

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

Loading