Skip to content

Commit

Permalink
Update code-scanning-export/src/main.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bailey Pearson <[email protected]>
  • Loading branch information
blink1073 and baileympearson authored May 30, 2024
1 parent 00d75bc commit c5e2d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code-scanning-export/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function run(): Promise<void> {
core.debug(`Found ${alerts.length} alerts, processing now...`)

const sarifReport = createSarifReport(alerts)
const filePath = path.join(process.cwd(), core.getInput('output-file'))
const filePath = path.isAbsolute(filePath) ? filePath : path.join(process.cwd(), core.getInput('output-file'))

core.debug(`Processing done, writing report to file ${filePath}`)

Expand Down

0 comments on commit c5e2d82

Please sign in to comment.