File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Cake.Frosting.Issues.Recipe/Cake.Frosting.Issues.Recipe/BuildServers
Cake.Issues.Recipe/Content/tasks/buildservers Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,6 @@ private static void UploadSarifToCodeScanning(IIssuesContext context)
133
133
return ;
134
134
}
135
135
136
- var commitSha = context . GitHubActions ( ) . Environment . Workflow . Sha ;
137
136
var ref_ = context . GitHubActions ( ) . Environment . Workflow . Ref ;
138
137
139
138
// Read and encode SARIF file
@@ -144,7 +143,7 @@ private static void UploadSarifToCodeScanning(IIssuesContext context)
144
143
var apiUrl = new Uri ( $ "https://api.github.com/repos/{ repository } /code-scanning/sarifs") ;
145
144
var requestBody = new
146
145
{
147
- commit_sha = commitSha ,
146
+ commit_sha = context . State . CommitId ,
148
147
ref_ ,
149
148
sarif = sarifBase64 ,
150
149
tool_name = "Cake.Issues.Recipe"
Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ public class GitHubActionsBuildServer : BaseBuildServer
132
132
return ;
133
133
}
134
134
135
- var commitSha = context . GitHubActions ( ) . Environment . Workflow . Sha ;
136
135
var ref_ = context . GitHubActions ( ) . Environment . Workflow . Ref ;
137
136
138
137
// Read and encode SARIF file
@@ -143,7 +142,7 @@ public class GitHubActionsBuildServer : BaseBuildServer
143
142
var apiUrl = new System . Uri ( $ "https://api.github.com/repos/{ repository } /code-scanning/sarifs") ;
144
143
var requestBody = new
145
144
{
146
- commit_sha = commitSha ,
145
+ commit_sha = data . CommitId ,
147
146
ref_ ,
148
147
sarif = sarifBase64 ,
149
148
tool_name = "Cake.Issues.Recipe"
You can’t perform that action at this time.
0 commit comments