Skip to content

Commit

Permalink
Don't remove invocations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Larry Golding committed Sep 23, 2020
1 parent cc242f7 commit 25140f1
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 65 deletions.
8 changes: 0 additions & 8 deletions src/Sarif/Visitors/GitHubIngestionVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ public override Run VisitRun(Run node)
this.artifacts = node.Artifacts;
this.threadFlowLocations = node.ThreadFlowLocations;

// GitHub does not support submitting invocation objects. Invocations
// contains potentially sensitive environment details, such as
// account names embedded in paths. Invocations also store
// notifications of catastrophic tool failures, however, which
// means there is current no mechanism for reporting these to
// GitHub users in context of the security tab.
node.Invocations = null;

if (node.Results != null)
{
int errorsCount = 0;
Expand Down
4 changes: 0 additions & 4 deletions src/Test.UnitTests.Sarif/Test.UnitTests.Sarif.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@
<None Remove="TestData\GitHubIngestionVisitor\ExpectedOutputs\ThreadFlowLocations.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\ExpectedOutputs\TooManyResults.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\ExpectedOutputs\WithArtifacts.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\ExpectedOutputs\WithInvocation.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\Inputs\Fingerprints.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\Inputs\NonErrorResults.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\Inputs\ThreadFlowLocations.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\Inputs\TooManyResults.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\Inputs\WithArtifacts.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\Inputs\WithInvocation.sarif" />
<None Remove="TestData\GitHubIngestionVisitor\RelatedLocationMessage.sarif" />
<None Remove="TestData\InsertOptionalDataVisitor\ExpectedOutputs\CoreTests-Absolute_TextFiles.sarif" />
<None Remove="TestData\InsertOptionalDataVisitor\ExpectedOutputs\CoreTests-Relative_All.sarif" />
Expand Down Expand Up @@ -91,13 +89,11 @@
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\ExpectedOutputs\NonErrorResults.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\ExpectedOutputs\ThreadFlowLocations.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\ExpectedOutputs\WithArtifacts.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\ExpectedOutputs\WithInvocation.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\ExpectedOutputs\TooManyResults.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\Inputs\NonErrorResults.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\Inputs\Fingerprints.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\Inputs\ThreadFlowLocations.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\Inputs\WithArtifacts.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\Inputs\WithInvocation.sarif" />
<EmbeddedResource Include="TestData\GitHubIngestionVisitor\Inputs\TooManyResults.sarif" />
<EmbeddedResource Include="TestData\InsertOptionalDataVisitor\ExpectedOutputs\CoreTests-Relative_VersionControlInformation.sarif" />
<EmbeddedResource Include="TestData\Readers\elfie-arriba-utf8-bom.sarif" />
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public void GitHubDspIngestionVisitor_LimitsNumberOfResults()
}
}

[Fact]
public void GitHubDspIngestionVisitor_RemovesInvocations()
=> RunTest("WithInvocation.sarif");

[Fact]
public void GitHubDspIngestionVisitor_RemovesArtifactsAndRetainsIndirectArtifactLocations()
=> RunTest("WithArtifacts.sarif");
Expand Down

0 comments on commit 25140f1

Please sign in to comment.