Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(golangBuild): pinversion of cyclonedx #4368

Merged
merged 5 commits into from
May 30, 2023

Conversation

Jk1484
Copy link
Contributor

@Jk1484 Jk1484 commented May 19, 2023

Changes

Pin output version of cyclonedx to 1.4

  • Tests
  • Documentation

@Jk1484 Jk1484 requested a review from a team as a code owner May 19, 2023 07:24
@@ -570,7 +570,7 @@ func lookupGolangPrivateModulesRepositories(goModFile *modfile.File, globPattern
}

func runBOMCreation(utils golangBuildUtils, outputFilename string) error {
if err := utils.RunExecutable("cyclonedx-gomod", "mod", "-licenses", "-test", "-output", outputFilename); err != nil {
if err := utils.RunExecutable("cyclonedx-gomod", "mod", "-licenses", "-test", "-output", outputFilename, "-ouput-version", "1.4"); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a typo here ouput-version
It should be "output-version"

@Jk1484 , could you please also test changes before marking it for review?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please also test changes before marking it for review?

That would be great since there are people using this :(

@Jk1484 Jk1484 force-pushed the muhammadali.GolangBuildVersionPin branch from 1451021 to 610096e Compare May 22, 2023 11:19
@vstarostin
Copy link
Member

@Jk1484, I think unit tests should be fixed/updated.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@vstarostin
Copy link
Member

/it-go

@vstarostin vstarostin merged commit 7f2e58b into master May 30, 2023
@vstarostin vstarostin deleted the muhammadali.GolangBuildVersionPin branch May 30, 2023 10:06
@ashlymat ashlymat mentioned this pull request Jul 12, 2023
2 tasks
maxatsap pushed a commit to maxatsap/jenkins-library that referenced this pull request Jul 23, 2024
* output version pin for cyclonedx

* test fix

---------

Co-authored-by: Vyacheslav Starostin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants