Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: laurentsimon <laurentsimon@google.com>
  • Loading branch information
laurentsimon committed Sep 13, 2022
1 parent 7825416 commit a5809fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Expand Up @@ -17,7 +17,6 @@ package main
import (
"log"
"os"
"strings"

"github.com/ossf/scorecard-action/entrypoint"
"github.com/ossf/scorecard-action/options"
Expand All @@ -35,7 +34,8 @@ func main() {
}

if os.Getenv(options.EnvInputPublishResults) == "true" &&
!strings.HasPrefix(os.Getenv("GITHUB_EVENT_NAME"), "pull_request") {
// `pull_request` do not have the necessary `token-id: write` permissions.
os.Getenv("GITHUB_EVENT_NAME") != "pull_request" {
// Get json results by re-running scorecard.
jsonPayload, err := signing.GetJSONScorecardResults()
if err != nil {
Expand Down

0 comments on commit a5809fa

Please sign in to comment.