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:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user