# BuildImageSecretType

- Kind: `enum`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Publishing`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Publishing/BuildImageSecretType.cs)

Specifies the type of a build secret.

## Definition

```csharp
namespace Aspire.Hosting.Publishing;

public enum BuildImageSecretType
```

## Enum Members

| Name | Value | Description |
| --- | --- | --- |
| Environment | 0 | The secret value is provided via an environment variable. |
| File | 1 | The secret value is a file path. |
