Closed jeffy-mathew closed 2 months ago
⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪ |
🧪 No relevant tests |
🔒 No security concerns identified |
⚡ No key issues to review |
Category | Suggestion | Score |
Maintainability |
Use a more flexible condition to match any version starting with '1.' and ending with '-bullseye'___ **Consider using a more inclusive condition to allow for future versions withoutneeding modifications. Instead of hardcoding the version, use a regular expression or a wildcard to match any version that starts with '1.' and ends with '-bullseye'.** [.github/workflows/release.yml [174]](https://github.com/TykTechnologies/tyk/pull/6549/files#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34R174-R174) ```diff -if: ${{ matrix.golang_cross == '1.22-bullseye' }} +if: ${{ startsWith(matrix.golang_cross, '1.') && endsWith(matrix.golang_cross, '-bullseye') }} ``` Suggestion importance[1-10]: 8Why: The suggestion improves maintainability by allowing future versions to be matched without requiring code changes, which is beneficial for long-term flexibility and reduces the need for frequent updates. | 8 |
API Changes
no api changes detected
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
/release to release-5.6
/release to release-5.6.0
Working on it! Note that it can take a few minutes.
Working on it! Note that it can take a few minutes.
@jeffy-mathew Succesfully merged PR
@jeffy-mathew Succesfully merged PR
User description
Description
build multiarch image on 1.22-bullseye, currently the step is skipped with a typo from go 1.22 upgrade
Related Issue
https://tyktech.atlassian.net/browse/TT-13122
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
configuration changes
Description
golang_cross
version1.22-bullseye
instead of1.21-bullseye
.Changes walkthrough 📝
release.yml
Update multiarch image build condition in release workflow
.github/workflows/release.yml
golang_cross
version from1.21-bullseye
to1.22-bullseye
.