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

feat(detectExecuteScan): Add useDetect9 for latest BlackDuck script #4649

Closed
wants to merge 1 commit into from

Conversation

bugwelle
Copy link
Member

@bugwelle bugwelle commented Oct 30, 2023

detect8.sh is no longer the most recent version of the BlackDuck runner. detect9.sh is now available and fixes some important bugs such as incorrect dependency reporting for package-lock.json's in version 2 and 3.

This commit adds detect9.sh support by adding a new detectExecuteScan option useDetect9, similar to the old option useDetect8.

See release notes of Synopsis Detect:

Changes

  • Tests
  • Documentation

@bugwelle bugwelle requested a review from a team as a code owner October 30, 2023 14:06
resources/metadata/detectExecuteScan.yaml Outdated Show resolved Hide resolved
@bugwelle
Copy link
Member Author

@CCFenner Is there anything else I can do? Or do I need a review by someone else? If so, could you assign/ping them? :)
I don't have permission to merge this, regardless of your approval and passed CI tests.

Regards,
Andre

@dimaste
Copy link
Member

dimaste commented Nov 20, 2023

Hello @bugwelle , could you please regenerate _generated file ?

@bugwelle
Copy link
Member Author

@dimaste Sure! Done. Btw: Isn't detect8 still the default? Or was the default: false change only for documentation? 😄

Copy link

sonarcloud bot commented Nov 20, 2023

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

@dimaste
Copy link
Member

dimaste commented Nov 20, 2023

This is the default value, but we don't use it actually. It works in any case where no other detect version parameter is provided.

@dimaste Sure! Done. Btw: Isn't detect8 still the default? Or was the default: false change only for documentation? 😄

@dimaste
Copy link
Member

dimaste commented Nov 20, 2023

@bugwelle we discussed your PR with product management. We can merge it after the server upgrade which we should complete by the end of the year. The reason is that the current server version does not officially support it.

I'll merge it once the server is upgraded. For now, let's keep the PR.

@bugwelle
Copy link
Member Author

bugwelle commented Nov 20, 2023

The reason is that the current server version does not officially support it.

@dimaste Oh! 😄
We're already using detect9.sh for some projects and didn't notice anything off.

Thanks for reviewing it. :)

@dimaste
Copy link
Member

dimaste commented Nov 20, 2023

Sure I see your concern, you can try to pass this as a workaround in Piper config of detect step for your scenario

customEnvironmentVariables:
- 'DETECT_LATEST_RELEASE_VERSION=9.1.0'

@bugwelle
Copy link
Member Author

Sure I see your concern, you can try to pass this as a workaround in Piper config of detect step for your scenario

customEnvironmentVariables: - 'DETECT_LATEST_RELEASE_VERSION=9.1.0'

Awesome! I'll try it out. I didn't find that option myself. :)

Regards,
Andre

Copy link
Contributor

Thank you for your contribution! This pull request is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

@github-actions github-actions bot added the stale marks stale issues and pull requests label Feb 12, 2024
@bugwelle
Copy link
Member Author

bugwelle commented Feb 12, 2024

@dimaste I've updated the PR. It seems that useDetect7/8 was removed during the last 3 months. I've added useDetect9 again.

@SAP/jenkins-library-team can you remove the stale label?

@github-actions github-actions bot removed the stale marks stale issues and pull requests label Feb 13, 2024
Copy link

sonarcloud bot commented Feb 27, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

Thank you for your contribution! This pull request is stale because it has been open 60 days with no activity. In order to keep it open, please remove stale label or add a comment within the next 10 days. If you need a Piper team member to remove the stale label make sure to add @SAP/jenkins-library-team to your comment.

@github-actions github-actions bot added the stale marks stale issues and pull requests label Apr 28, 2024
`detect8.sh` is no longer the most recent version of the BlackDuck
runner. `detect9.sh` is now available and fixes some important bugs such
as incorrect dependency reporting for `package-lock.json`'s in version
2 and 3.

This commit adds `detect9.sh` support by adding a new
`detectExecuteScan` option `useDetect9`, similar to the existing
option `useDetect9`.

See release notes of Synopsis Detect:
 - https://sig-product-docs.synopsys.com/bundle/integrations-detect/page/currentreleasenotes.html
@bugwelle
Copy link
Member Author

@dimaste I've rebased the PR. It seems that useDetect7/8 was removed during the last 5 months. I've added useDetect9 again.

@SAP/jenkins-library-team can you remove the stale label?

Copy link

sonarcloud bot commented Apr 29, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@github-actions github-actions bot removed the stale marks stale issues and pull requests label Apr 30, 2024
@dimaste
Copy link
Member

dimaste commented May 20, 2024

Hi @bugwelle , this functionality has been merged separately so you can use it :)

@dimaste dimaste closed this May 20, 2024
@bugwelle bugwelle deleted the detect9 branch May 20, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants