Skip to content

Commit 68bf5b3

Browse files
🐛 Fixes Run all checks on a BranchProtection event - failing tests (#897)
* Run all checks on a BranchProtection event Signed-off-by: Azeem Shaikh <[email protected]> * Fixed the failing tests. Signed-off-by: naveensrinivasan <[email protected]> Signed-off-by: Azeem Shaikh <[email protected]> Signed-off-by: naveensrinivasan <[email protected]> Co-authored-by: Azeem Shaikh <[email protected]>
1 parent f437b3c commit 68bf5b3

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ branding:
5353

5454
runs:
5555
using: "docker"
56-
image: "docker://gcr.io/openssf/scorecard-action:v2.0.1"
56+
image: "docker://gcr.io/openssf/scorecard-action:v2.0.2"

options/options.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"golang.org/x/net/context"
2626

2727
"github.com/ossf/scorecard-action/github"
28-
"github.com/ossf/scorecard/v4/checks"
2928
scopts "github.com/ossf/scorecard/v4/options"
3029
)
3130

@@ -184,11 +183,6 @@ func (o *Options) setScorecardOpts() {
184183
o.ScorecardOpts.PolicyFile = defaultScorecardPolicyFile
185184
}
186185

187-
// --checks=
188-
if o.GithubEventName == branchProtectionEvent {
189-
o.ScorecardOpts.ChecksToRun = []string{checks.CheckBranchProtection}
190-
}
191-
192186
// --show-details
193187
o.ScorecardOpts.ShowDetails = true
194188

options/options_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"testing"
2121

2222
"github.com/google/go-cmp/cmp"
23-
"github.com/ossf/scorecard/v4/checks"
2423
"github.com/ossf/scorecard/v4/options"
2524
)
2625

@@ -137,7 +136,6 @@ func TestNew(t *testing.T) {
137136
Commit: options.DefaultCommit,
138137
LogLevel: options.DefaultLogLevel,
139138
Repo: testRepo,
140-
ChecksToRun: []string{checks.CheckBranchProtection},
141139
ShowDetails: true,
142140
},
143141
wantErr: false,

0 commit comments

Comments
 (0)