Fix type issues

This commit is contained in:
Justin Hutchings
2024-03-03 06:50:11 +00:00
parent c286ea91b0
commit 2bc3ecb19b
4 changed files with 32 additions and 4 deletions
+1 -2
View File
@@ -13,7 +13,7 @@ import * as core from '@actions/core'
export async function getScorecardLevels(
changes: Change[]
): Promise<Scorecard> {
const data: Scorecard = {} as Scorecard
const data: Scorecard = {dependencies: []} as Scorecard
for (const change of changes) {
try {
const ecosystem = change.ecosystem
@@ -24,7 +24,6 @@ export async function getScorecardLevels(
packageName,
version
)
data.dependencies.push({
ecosystem,
packageName,