Skip to content

Commit

Permalink
🌱 Deprecate dependencydiff package and add access token requirement
Browse files Browse the repository at this point in the history
- Deprecate the `dependencydiff` package and the `GetDependencyDiffResults` function
- Add a line to the `.codecov.yml` to ignore the `dependencydiff` package

Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan committed Jun 5, 2023
1 parent d961dda commit 7c90920
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ignore:
- "docs/**/*"
# this is the runner
- "main.go"
# this package is deprecated and going to be removed.
- "dependencydiff/**/*"

coverage:
precision: 2
Expand Down
6 changes: 5 additions & 1 deletion dependencydiff/dependencydiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Deprecated: This is going to be removed in the future.
package dependencydiff

import (
Expand All @@ -29,7 +30,9 @@ import (
)

// Depdiff is the exported name for dependency-diff.
const Depdiff = "Dependency-diff"
const (
Depdiff = "Dependency-diff"
)

// A private context struct used for GetDependencyCheckResults.
type dependencydiffContext struct {
Expand All @@ -50,6 +53,7 @@ type dependencydiffContext struct {
// GetDependencyDiffResults gets dependency changes between two given code commits BASE and HEAD
// along with the Scorecard check results of the dependencies, and returns a slice of DependencyCheckResult.
// TO use this API, an access token must be set. See https://github.com/ossf/scorecard#authentication.
// Deprecated: This is going to be removed in the future.
func GetDependencyDiffResults(
ctx context.Context,
repoURI string, /* Use the format "ownerName/repoName" as the repo URI, such as "ossf/scorecard". */
Expand Down

0 comments on commit 7c90920

Please sign in to comment.