We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d733726 commit 6213479Copy full SHA for 6213479
main.go
@@ -33,7 +33,9 @@ func main() {
33
log.Fatalf("error during command execution: %v", err)
34
}
35
36
- if os.Getenv(options.EnvInputPublishResults) == "true" {
+ if os.Getenv(options.EnvInputPublishResults) == "true" &&
37
+ // `pull_request` do not have the necessary `token-id: write` permissions.
38
+ os.Getenv("GITHUB_EVENT_NAME") != "pull_request" {
39
// Get json results by re-running scorecard.
40
jsonPayload, err := signing.GetJSONScorecardResults()
41
if err != nil {
0 commit comments