Skip to content

Commit

Permalink
Address feedback.
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
spencerschrock committed Sep 26, 2022
1 parent 7698cc9 commit 39dffd5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions entrypoint/entrypoint.go
Expand Up @@ -83,11 +83,10 @@ func New() (*cobra.Command, error) {
// users were having action failures due to secondary rate limits causing checks to fail
scorecardRunE := actionCmd.RunE
actionCmd.RunE = func(cmd *cobra.Command, args []string) error {
err := scorecardRunE(cmd, args)
if errors.Is(err, sce.ErrorCheckRuntime) {
err = nil
if err := scorecardRunE(cmd, args); err != nil && !errors.Is(err, sce.ErrorCheckRuntime) {
return err
}
return err
return nil
}

actionCmd.PersistentPostRun = func(cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit 39dffd5

Please sign in to comment.