Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
kty1965 committed Feb 14, 2024
1 parent 1f93208 commit 9bb06e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41484,7 +41484,7 @@ async function run() {
if (metadataKey) {
const cidrEntries = await getMetaCidrEntries({ metadataKey });
if (cidrEntries) {
expectCidrEntries.push(cidrEntries);
expectCidrEntries.push(...cidrEntries);
} else {
throw new Error(
`The metadata cidrEntries for '${metadataKey}' were unable to be resolved.`,
Expand All @@ -41493,7 +41493,7 @@ async function run() {
}
if (additionalCidrEntries) {
const cidrEntries = getAdditionalCidrEntries(additionalCidrEntries);
expectCidrEntries.push(cidrEntries);
expectCidrEntries.push(...cidrEntries);
}

core.debug(`existScopedIpAllowListEntries: ${JSON.stringify(existScopedIpAllowListEntries)}`);
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function run() {
if (metadataKey) {
const cidrEntries = await getMetaCidrEntries({ metadataKey });
if (cidrEntries) {
expectCidrEntries.push(cidrEntries);
expectCidrEntries.push(...cidrEntries);
} else {
throw new Error(
`The metadata cidrEntries for '${metadataKey}' were unable to be resolved.`,
Expand All @@ -47,7 +47,7 @@ async function run() {
}
if (additionalCidrEntries) {
const cidrEntries = getAdditionalCidrEntries(additionalCidrEntries);
expectCidrEntries.push(cidrEntries);
expectCidrEntries.push(...cidrEntries);
}

core.debug(`existScopedIpAllowListEntries: ${JSON.stringify(existScopedIpAllowListEntries)}`);
Expand Down

0 comments on commit 9bb06e3

Please sign in to comment.