Update eslint from 8.x to 9.x (#185)

* remove eslint prettier plugins

Signed-off-by: Brian DeHamer <bdehamer@github.com>

* eslint upgrade

Signed-off-by: Brian DeHamer <bdehamer@github.com>

* source fixup

Signed-off-by: Brian DeHamer <bdehamer@github.com>

---------

Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
Brian DeHamer
2024-12-13 15:25:52 -08:00
committed by GitHub
parent d94b522220
commit bfa7e6911b
11 changed files with 1274 additions and 2756 deletions

View File

@@ -20,5 +20,5 @@ const inputs: RunInputs = {
)
}
// eslint-disable-next-line @typescript-eslint/no-floating-promises
/* eslint-disable-next-line @typescript-eslint/no-floating-promises */
run(inputs)

View File

@@ -85,7 +85,7 @@ export async function run(inputs: RunInputs): Promise<void> {
}
if (inputs.showSummary) {
logSummary(att)
await logSummary(att)
}
} catch (err) {
// Fail the workflow run if an error occurs
@@ -153,14 +153,14 @@ const logAttestation = (
}
// Attach summary information to the GitHub Actions run
const logSummary = (attestation: AttestResult): void => {
const logSummary = async (attestation: AttestResult): Promise<void> => {
const { attestationID } = attestation
if (attestationID) {
const url = attestationURL(attestationID)
core.summary.addHeading('Attestation Created', 3)
core.summary.addList([`<a href="${url}">${url}</a>`])
core.summary.write()
await core.summary.write()
}
}

View File

@@ -68,7 +68,6 @@ const getSubjectFromPath = async (
const subjectPaths = parseList(subjectPath).join('\n')
// Expand the globbed paths to a list of actual paths
/* eslint-disable-next-line github/no-then */
const paths = await glob.create(subjectPaths).then(async g => g.glob())
// Filter path list to just the files (not directories)