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

Exposing automationId, automationGuid, and postUri in the analyze command. #586

Merged
merged 2 commits into from
Dec 1, 2021

Conversation

eddynaka
Copy link
Collaborator

@eddynaka eddynaka commented Nov 30, 2021

Changes

Updating the sarif-sdk submodule will enable us to expose three new parameters for the analyze command: postUri, automationId, and automationGuid.

Below is one example of the new command-line arguments:

❯ .\spam.exe analyze c:\temp\ -o c:\test.sarif --force -d C:\Rules.json --automationId "Test" --automationGuid BC6CCB9F-16C8-4656-A227-C7B5F34864FA --postUri http://localhost:7072/api/upload-content

For significant contributions please make sure you have completed the following items:

  • ReleaseHistory.md updated for non-trivial changes
  • Added unit tests

@eddynaka eddynaka changed the title Updating submodules Exposing automationId, automationGuid, and postUri in the analyze command. Nov 30, 2021
@eddynaka eddynaka marked this pull request as ready for review November 30, 2021 19:42
@@ -84,7 +84,7 @@ public void GitHubAppCredentialsValidator_MockHttpTests()
var fingerprint = new Fingerprint(fingerprintText);
var keyValuePairs = new Dictionary<string, string>();

using var httpClient = new HttpClient(HttpMockHelper.Mock(testCase.HttpStatusCode, testCase.HttpContent));
using var httpClient = new HttpClient(Helpers.HttpMockHelper.Mock(testCase.HttpStatusCode, testCase.HttpContent));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Helpers.

the sarif code now contains the same httpmock infrastructure.

will have to check if we should drop from this or something else.

@eddynaka eddynaka merged commit fa9f65b into main Dec 1, 2021
@eddynaka eddynaka deleted the users/ednakamu/updating-submodules branch December 1, 2021 17:39
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.

None yet

2 participants