Skip to content

Commit

Permalink
options: Restore repo field mapping
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <foo@auggie.dev>
  • Loading branch information
justaugustus committed May 26, 2022
1 parent 819c040 commit cf5a3c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions options/options.go
Expand Up @@ -89,6 +89,11 @@ func New() (*Options, error) {
return opts, fmt.Errorf("parsing entrypoint env vars: %w", err)
}

// This section restores functionality that was removed in
// https://github.com/ossf/scorecard/pull/1898.
// TODO(options): Consider moving this to its own function.
opts.ScorecardOpts.Repo = opts.GithubRepository

if err := opts.Initialize(); err != nil {
return opts, fmt.Errorf(
"initializing scorecard-action options: %w",
Expand Down

0 comments on commit cf5a3c2

Please sign in to comment.