# VersionSourceCode<!-- -->

An Actor version whose source is a single inline script.

It carries no source location of its own, so it adds nothing to `BaseVersion`; the variant exists so that `SOURCE_CODE`, which both the spec and `@apify/consts` list, is representable.

### Hierarchy

* [BaseVersion](https://docs.apify.com/api/client/js/reference/interface/BaseVersion.md)<\`${ActorSourceType.SourceCode}\`>
  * *VersionSourceCode*

## Index[](#Index)

### Properties

* [applyEnvVarsToBuild](#applyEnvVarsToBuild)
* [bitbucketWebhookId](#bitbucketWebhookId)
* [buildTag](#buildTag)
* [envVars](#envVars)
* [githubWebhookId](#githubWebhookId)
* [gitlabWebhookId](#gitlabWebhookId)
* [sourceType](#sourceType)
* [versionNumber](#versionNumber)

## Properties<!-- -->[](#Properties)

### [](#applyEnvVarsToBuild)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5336)optionalinheritedapplyEnvVarsToBuild

applyEnvVarsToBuild?

<!-- -->

: null | boolean

Inherited from BaseVersion.applyEnvVarsToBuild

```
false
```

Whether to inject the environment variables at build time.

### [](#bitbucketWebhookId)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5360)optionalinheritedbitbucketWebhookId

bitbucketWebhookId?

<!-- -->

: null | string

Inherited from BaseVersion.bitbucketWebhookId

ID of the Bitbucket webhook that triggers a build on push. Present when build on push is enabled for a Bitbucket repository.

### [](#buildTag)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5341)optionalinheritedbuildTag

buildTag?

<!-- -->

: null | string

Inherited from BaseVersion.buildTag

```
latest
```

The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag.

### [](#envVars)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/models.ts#L270)optionalinheritedenvVars

envVars?

<!-- -->

: null | [EnvVar](https://docs.apify.com/api/client/js/reference/interface/EnvVar.md)\[]

Inherited from BaseVersion.envVars

### [](#githubWebhookId)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5356)optionalinheritedgithubWebhookId

githubWebhookId?

<!-- -->

: null | number

Inherited from BaseVersion.githubWebhookId

ID of the GitHub webhook that triggers a build on push. Present when build on push is enabled for a GitHub repository.

### [](#gitlabWebhookId)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5358)optionalinheritedgitlabWebhookId

gitlabWebhookId?

<!-- -->

: null | number

Inherited from BaseVersion.gitlabWebhookId

ID of the GitLab webhook that triggers a build on push. Present when build on push is enabled for a GitLab repository.

### [](#sourceType)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/models.ts#L295)inheritedsourceType

sourceType: SOURCE_CODE

Inherited from BaseVersion.sourceType

### [](#versionNumber)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/generated/api.ts#L5327)inheritedversionNumber

versionNumber: string

Inherited from BaseVersion.versionNumber

```
0.0
```

The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning.
