Permalink
Cannot retrieve contributors at this time
22 lines (19 sloc)
654 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/src/analyze-action-post.ts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This file is the entry point for the `post:` hook of `analyze-action.yml`. | |
* It will run after the all steps in this job, in reverse order in relation to | |
* other `post:` hooks. | |
*/ | |
import * as core from "@actions/core"; | |
import * as analyzeActionPostHelper from "./analyze-action-post-helper"; | |
import * as debugArtifacts from "./debug-artifacts"; | |
import { wrapError } from "./util"; | |
async function runWrapper() { | |
try { | |
await analyzeActionPostHelper.run(debugArtifacts.uploadSarifDebugArtifact); | |
} catch (error) { | |
core.setFailed( | |
`analyze post-action step failed: ${wrapError(error).message}`, | |
); | |
} | |
} | |
void runWrapper(); |