Class DetSysActionAbstract

Constructors

Properties

actionOptions: ConfidentActionOptions
archOs: string
architectureFetchSuffix: string
events: DiagnosticEvent[]
exceptionAttachments: Map<string, PathLike>
executionPhase: ExecutionPhase
facts: Record<string, string | boolean>
featureEventMetadata: {
    [k: string]: string | boolean;
}

Type declaration

  • [k: string]: string | boolean
features: {
    [k: string]: Feature;
}

Type declaration

idsHost: IdsHost
nixStoreTrust: NixStoreTrust
nixSystem: string
sourceParameters: SourceDef
strictMode: boolean

Accessors

Methods

  • Parameters

    • key: string
    • value: string | boolean

    Returns void

  • Parameters

    • version: string

    Returns string

  • Returns Promise<void>

  • Returns Promise<void>

  • Execute the Action as defined.

    Returns void

  • Returns Promise<void>

  • A helper function for failing on error only if strict mode is enabled. This is intended only for CI environments testing Actions themselves.

    Parameters

    • msg: string

    Returns void

  • Fetch an artifact, such as a tarball, from the location determined by the source-* inputs. If source-binary is specified, this will return a path to a binary on disk; otherwise, the artifact will be downloaded from the URL determined by the other source-* inputs (source-url, source-pr, etc.).

    Returns Promise<string>

  • Fetches the executable at the URL determined by the source-* inputs and other facts, chmods it, and returns the path to the executable on disk.

    Returns Promise<string>

  • Parameters

    • version: string

    Returns Promise<undefined | string>

  • Returns Promise<undefined | URL>

  • Returns Promise<Got>

  • Returns Promise<undefined | URL>

  • Returns Promise<URL>

  • Returns string

  • The main execution phase.

    Returns Promise<void>

  • The post execution phase.

    Returns Promise<void>

  • Returns Promise<void>

  • Returns Promise<boolean>

  • Parameters

    • eventName: string
    • context: Record<string, unknown> = {}

    Returns void

  • Check in to install.determinate.systems, to accomplish three things:

    1. Preflight the server selected from IdsHost, to increase the chances of success.
    2. Fetch any incidents and maintenance events to let users know in case things are weird.
    3. Get feature flag data so we can gently roll out new features.

    Returns Promise<undefined | CheckIn>

  • Parameters

    • version: string
    • toolPath: string

    Returns Promise<void>

  • Attach a file to the diagnostics data in error conditions.

    The file at location doesn't need to exist when stapleFile is called.

    If the file doesn't exist or is unreadable when trying to staple the attachments, the JS error will be stored in a context value at staple_failure_{name}. If the file is readable, the file's contents will be stored in a context value at staple_value_{name}.

    Parameters

    • name: string
    • location: string

    Returns void

  • Returns Promise<void>

  • Unpacks the closure returned by fetchArtifact(), imports the contents into the Nix store, and returns the path of the executable at /nix/store/STORE_PATH/bin/${bin}.

    Parameters

    • bin: string

    Returns Promise<string>