mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 02:01:27 +00:00
Add remaining post-actions to ActionName
This commit is contained in:
5
lib/entry-points.js
generated
5
lib/entry-points.js
generated
@@ -171424,7 +171424,10 @@ function getAddressString(address) {
|
||||
// src/status-report.ts
|
||||
var ACTION_DISPLAY_NAMES = {
|
||||
["finish" /* Analyze */]: "analyze",
|
||||
["init-post" /* InitPost */]: "init post"
|
||||
["analyze-post" /* AnalyzePost */]: "analyze post-action",
|
||||
["init-post" /* InitPost */]: "init post",
|
||||
["start-proxy-post" /* StartProxyPost */]: "start-proxy post-action",
|
||||
["upload-sarif-post" /* UploadSarifPost */]: "upload-sarif post-action"
|
||||
};
|
||||
function getDisplayActionName(actionName) {
|
||||
const displayName = ACTION_DISPLAY_NAMES[actionName];
|
||||
|
||||
@@ -52,19 +52,25 @@ import {
|
||||
|
||||
export enum ActionName {
|
||||
Analyze = "finish",
|
||||
AnalyzePost = "analyze-post",
|
||||
Autobuild = "autobuild",
|
||||
Init = "init",
|
||||
InitPost = "init-post",
|
||||
ResolveEnvironment = "resolve-environment",
|
||||
SetupCodeQL = "setup-codeql",
|
||||
StartProxy = "start-proxy",
|
||||
StartProxyPost = "start-proxy-post",
|
||||
UploadSarif = "upload-sarif",
|
||||
UploadSarifPost = "upload-sarif-post",
|
||||
}
|
||||
|
||||
/** A partial mapping from `ActionName` to names for actions whose display name is not the `ActionName` value. */
|
||||
export const ACTION_DISPLAY_NAMES: Partial<Record<ActionName, string>> = {
|
||||
[ActionName.Analyze]: "analyze",
|
||||
[ActionName.AnalyzePost]: "analyze post-action",
|
||||
[ActionName.InitPost]: "init post",
|
||||
[ActionName.StartProxyPost]: "start-proxy post-action",
|
||||
[ActionName.UploadSarifPost]: "upload-sarif post-action",
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user