Open
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add validation for existing tags created via GitHub UI without version updates. When an invalid tag is detected, it is deleted and recreated with correct versions through the full release flow. Use detached HEAD for the version commit and push only the tag ref, avoiding branch protection errors on main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What This PR Contributes
Summary of Changes
This pull request updates the release workflows for CodeQL and tag management to streamline tool installation, improve version validation, and ensure safer tagging practices. The main changes are a migration away from the QLT toolkit in favor of the GitHub CLI for CodeQL installation, enhanced validation and recreation of tags with incorrect versions, and improved safety around branch protection during tagging.
Outline of Changes
Release workflow improvements:
gh codeql), simplifying setup and aligning with newer best practices. (.github/workflows/release-codeql.yml,.github/workflows/release-tag.yml) [1] [2]codeqlCLI directly instead of relying on QLT-provided environment variables. (.github/workflows/release-codeql.yml,.github/workflows/release-tag.yml) [1] [2] [3]Tag validation and creation logic:
.github/workflows/release-tag.yml)needs-creation) to determine whether a tag needs to be created or recreated, and conditions all subsequent steps on this check to prevent unnecessary or incorrect tag creation. (.github/workflows/release-tag.yml)Commit and tag handling:
.github/workflows/release-tag.yml) [1] [2].github/workflows/release-tag.yml)Release summary output:
.github/workflows/release-tag.yml)Future Works
None