Skip to content

Commit

Permalink
Add PR base ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheesebaron committed Mar 19, 2024
1 parent 6c2c46e commit e96415f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ Task("SonarStart")
args.AppendFormat("/d:sonar.cs.xunit.reportsPaths={0} ", new DirectoryPath(outputDir + "/Tests/").FullPath);
args.AppendFormat("/d:sonar.login={0} ", sonarKey);
if (GitHubActions.Environment.PullRequest.IsPullRequest)
{
args.AppendFormat("/d:sonar.pullrequest.base={0}", GitHubActions.Environment.Workflow.BaseRef);
}
DotNetTool("./", "dotnet-sonarscanner", args.ToString());
});

Expand Down

0 comments on commit e96415f

Please sign in to comment.