Reuse installed ginkgo and use cleaner binary check#609
Open
jorbaum wants to merge 1 commit intocloudfoundry:mainfrom
Open
Reuse installed ginkgo and use cleaner binary check#609jorbaum wants to merge 1 commit intocloudfoundry:mainfrom
jorbaum wants to merge 1 commit intocloudfoundry:mainfrom
Conversation
chombium
requested changes
Mar 2, 2026
Contributor
chombium
left a comment
There was a problem hiding this comment.
Please change the linting directives
src/internal/auth/capi_client.go
Outdated
|
|
||
| func (c *CAPIClient) HasApp(sourceID, authToken string) bool { | ||
| req, err := http.NewRequest(http.MethodGet, c.addr+"/v3/apps/"+sourceID, nil) | ||
| req, err := http.NewRequest(http.MethodGet, c.addr+"/v3/apps/"+sourceID, nil) //#nosec G704 |
Contributor
There was a problem hiding this comment.
Please use //nolint:gosec instead of #nosec as we are using gosec via golang and not directly.
Contributor
Author
There was a problem hiding this comment.
Good point. There are several instances where there nosec is already used in this code base. Do you want me to change those as well?
jorbaum
commented
Mar 2, 2026
Contributor
Author
jorbaum
left a comment
There was a problem hiding this comment.
Worked in the comments.
f6e911d to
e472868
Compare
Also:
* Replace golang.org/x/net/context with context
* Ignore G115
numOfRoutes is never negative anyway
* Ignore gosec G117
ClientSecret is not exposed to outside.
* Ignore G704
URI address is not provided by user but by server-side config.
* Ignore G704 SSRF via taint analysis in tests
There is no user controlled input
* Prefer nolint over nosec everywhere
e472868 to
c5a872e
Compare
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.
Description
Adjusts test scripts just like cloudfoundry/loggregator-agent-release#717 :
Type of change
Testing performed?
Checklist:
mainbranch, or relevant version branch