-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore!: eliminate dependency on the gaf #14
Conversation
8b97138
to
9d687fa
Compare
@@ -264,8 +259,6 @@ func TestSnykCodeBackendServicePact_LocalCodeEngine(t *testing.T) { | |||
Headers: dsl.MapMatcher{ | |||
"Content-Type": dsl.String("application/json"), | |||
"snyk-request-id": getSnykRequestIdMatcher(), | |||
"Session-Token": dsl.Regex("token fc763eba-0905-41c5-a27f-3934ab26786c", sessionTokenMatcher), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes happened because we stopped setting up the configuration with the authentication token, which behind-the-scenes is used to configure these headers for the local code engine mode. I wanted to keep them so that we can make sure the local code engine mode continues to work during this refactoring but I think I can add a test in snyk/snyk-ls#455 instead to make sure these headers are set
The security check from |
The go-application-framework should not be a required dependency of this package. It provides only minimal supporting functionality: - Convenience of access to a logger - Convenience of two configuration options (Organization and IsFedramp) While pulling in a lot of dependencies that a Snyk Code API client does not really need. It should not be necessary, for example, to have to know about the GAF's workflow engine in order to work with Snyk Code. This change removes the dependency on the GAF, while leaving room to integrate the code client with the GAF in the CLI and LS. This reduction of coupling makes the open-source Snyk Code client more relevant to a much wider context of reuse.
a56cbc4
to
52f12e8
Compare
52f12e8
to
c82db04
Compare
The go-application-framework should not be a required dependency of this package. It provides only minimal supporting functionality:
while pulling in a lot of dependencies that a Snyk Code API client does not really need. It should not be necessary, for example, to have to know about the GAF's workflow engine in order to work with Snyk Code.
This change removes the dependency on the GAF, while leaving room to integrate the code client with the GAF in the CLI and LS. This reduction of coupling makes the open-source Snyk Code client more relevant to a much wider context of reuse.