From cf5a3c284fefba0d5c6f4cf0a96a42bf1db004f3 Mon Sep 17 00:00:00 2001 From: Stephen Augustus Date: Thu, 26 May 2022 01:23:27 -0400 Subject: [PATCH] options: Restore repo field mapping Signed-off-by: Stephen Augustus --- options/options.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/options/options.go b/options/options.go index b63787bb..6cd7d1ee 100644 --- a/options/options.go +++ b/options/options.go @@ -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",