Table of Contents

Interface IRequiredSecretsDetector

Namespace
Ando.Server.Services
Assembly
Ando.Server.dll

Service for detecting required environment variables from build scripts.

public interface IRequiredSecretsDetector

Methods

DetectRequiredSecretsAsync(long, string, string?)

Detects required environment variables from a repository's build script.

Task<IReadOnlyList<string>> DetectRequiredSecretsAsync(long installationId, string repoFullName, string? branch = null)

Parameters

installationId long

GitHub App installation ID.

repoFullName string

Repository full name (owner/repo).

branch string

Branch to read from (optional, uses default branch if null).

Returns

Task<IReadOnlyList<string>>

List of detected required environment variable names.

ParseRequiredSecrets(string)

Detects required environment variables from build script content.

IReadOnlyList<string> ParseRequiredSecrets(string scriptContent)

Parameters

scriptContent string

The content of a build.csando file.

Returns

IReadOnlyList<string>

List of detected required environment variable names.