Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenwang9867 committed Jul 18, 2022
1 parent 779674b commit 82179ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dependencydiff/dependencydiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func getScorecardCheckResults(dCtx *dependencydiffContext) error {
// TODO (#2063): use the BigQuery dataset to supplement null source repo URLs to fetch the Scorecard results for them.
if d.SourceRepository != nil && *d.SourceRepository != "" {
if d.ChangeType != nil {
if dCtx.changeTypesToCheck[*d.ChangeType] || dCtx.changeTypesToCheck == nil {
if dCtx.changeTypesToCheck[*d.ChangeType] || dCtx.changeTypesToCheck == nil || len(dCtx.changeTypesToCheck) == 0 {
// Initialize the repo and client(s) corresponding to the checks to run.
// If no types have been specified, run checks on all types.
err = initRepoAndClientByChecks(dCtx, *d.SourceRepository)
Expand Down

0 comments on commit 82179ba

Please sign in to comment.