Dagger
Search

gha

Daggerizing your CI makes your YAML configurations smaller, but they still exist,
and they're still a pain to maintain by hand.

This module aims to finish the job, by letting you generate your remaining
YAML configuration from a Dagger pipeline, written in your favorite language.

Installation

dagger install github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799

Entrypoint

Return Type
Gha !
Arguments
NameTypeDefault ValueDescription
noTracesBoolean -Disable sending traces to Dagger Cloud
publicTokenString -Public Dagger Cloud token, for open-source projects. DO NOT PASS YOUR PRIVATE DAGGER CLOUD TOKEN! This is for a special "public" token which can safely be shared publicly. To get one, contact support@dagger.io
daggerVersionString "latest"Dagger version to run in the Github Actions pipelines
stopEngineBoolean -Explicitly stop the Dagger Engine after completing the pipeline
asJsonBoolean -Encode all files as JSON (which is also valid YAML)
runner[String ! ] -Configure a default runner for all workflows See https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/using-self-hosted-runners-in-a-workflow
fileExtensionString ".gen.yml"File extension to use for generated workflow files
repositoryDirectory -Existing repository root, to merge existing content
timeoutMinutesInteger -Default timeout for CI jobs, in minutes
installEngineBoolean trueDefine if the dagger engine should be installed
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
func (m *myModule) example() *Gha  {
	return dag.
			Gha()
}
@function
def example() -> dag.Gha:
	return (
		dag.gha()
	)
@func()
example(): Gha {
	return dag
		.gha()
}

Types

Gha 🔗

settings() 🔗

Settings for this Github Actions project

Return Type
Settings !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 settings
func (m *myModule) example() *GhaSettings  {
	return dag.
			Gha().
			Settings()
}
@function
def example() -> dag.GhaSettings:
	return (
		dag.gha()
		.settings()
	)
@func()
example(): GhaSettings {
	return dag
		.gha()
		.settings()
}

validate() 🔗

Validate a Github Actions configuration (best effort)

Return Type
Gha !
Arguments
NameTypeDefault ValueDescription
repoDirectory !-No description provided
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 validate --repo DIR_PATH
func (m *myModule) example(repo *Directory) *Gha  {
	return dag.
			Gha().
			Validate(repo)
}
@function
def example(repo: dagger.Directory) -> dag.Gha:
	return (
		dag.gha()
		.validate(repo)
	)
@func()
example(repo: Directory): Gha {
	return dag
		.gha()
		.validate(repo)
}

config() 🔗

Export the configuration to a .github directory

Return Type
Directory !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 config
func (m *myModule) example() *Directory  {
	return dag.
			Gha().
			Config()
}
@function
def example() -> dagger.Directory:
	return (
		dag.gha()
		.config()
	)
@func()
example(): Directory {
	return dag
		.gha()
		.config()
}

withPipeline() 🔗

Add a pipeline

Return Type
Gha !
Arguments
NameTypeDefault ValueDescription
nameString !-Pipeline name
commandString !-The Dagger command to execute Example 'build --source=.'
moduleString -The Dagger module to load
runner[String ! ] -Dispatch jobs to the given runner Example: ["ubuntu-latest"]
secrets[String ! ] -Github secrets to inject into the pipeline environment. For each secret, an env variable with the same name is created. Example: ["PROD_DEPLOY_TOKEN", "PRIVATE_SSH_KEY"]
sparseCheckout[String ! ] -Use a sparse git checkout, only including the given paths Example: ["src", "tests", "Dockerfile"]
dispatchBoolean -(DEPRECATED) allow this pipeline to be manually "dispatched"
noDispatchBoolean -Disable manual "dispatch" of this pipeline
lfsBoolean -Enable lfs on git checkout
debugBoolean -Run the pipeline in debug mode
daggerVersionString -Dagger version to run this pipeline
timeoutMinutesInteger -The maximum number of minutes to run the pipeline before killing the process
permissions[Enum ! ] -Permissions to grant the pipeline
onIssueCommentBoolean -Run the pipeline on any issue comment activity
onIssueCommentCreatedBoolean -No description provided
onIssueCommentEditedBoolean -No description provided
onIssueCommentDeletedBoolean -No description provided
onPullRequestBoolean -Run the pipeline on any pull request activity
pullRequestConcurrencyString "allow"Configure this pipeline's concurrency for each PR. This is triggered when the pipeline is scheduled concurrently on the same PR. - allow: all instances are allowed to run concurrently - queue: new instances are queued, and run sequentially - preempt: new instances run immediately, older ones are canceled Possible values: "allow", "preempt", "queue"
onPullRequestBranches[String ! ] -No description provided
onPullRequestPaths[String ! ] -No description provided
onPullRequestAssignedBoolean -No description provided
onPullRequestUnassignedBoolean -No description provided
onPullRequestLabeledBoolean -No description provided
onPullRequestUnlabeledBoolean -No description provided
onPullRequestOpenedBoolean -No description provided
onPullRequestEditedBoolean -No description provided
onPullRequestClosedBoolean -No description provided
onPullRequestReopenedBoolean -No description provided
onPullRequestSynchronizeBoolean -No description provided
onPullRequestConvertedToDraftBoolean -No description provided
onPullRequestLockedBoolean -No description provided
onPullRequestUnlockedBoolean -No description provided
onPullRequestEnqueuedBoolean -No description provided
onPullRequestDequeuedBoolean -No description provided
onPullRequestMilestonedBoolean -No description provided
onPullRequestDemilestonedBoolean -No description provided
onPullRequestReadyForReviewBoolean -No description provided
onPullRequestReviewRequestedBoolean -No description provided
onPullRequestReviewRequestRemovedBoolean -No description provided
onPullRequestAutoMergeEnabledBoolean -No description provided
onPullRequestAutoMergeDisabledBoolean -No description provided
onPushBoolean -Run the pipeline on any git push
onPushTags[String ! ] -Run the pipeline on git push to the specified tags
onPushBranches[String ! ] -Run the pipeline on git push to the specified branches
onSchedule[String ! ] -Run the pipeline at a schedule time
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 with-pipeline --name string --command string
func (m *myModule) example(name string, command string) *Gha  {
	return dag.
			Gha().
			WithPipeline(name, command)
}
@function
def example(name: str, command: str) -> dag.Gha:
	return (
		dag.gha()
		.with_pipeline(name, command)
	)
@func()
example(name: string, command: string): Gha {
	return dag
		.gha()
		.withPipeline(name, command)
}

pipeline() 🔗

Lookup a pipeline

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string
func (m *myModule) example(name string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name)
}
@function
def example(name: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
	)
@func()
example(name: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
}

withExistingPipeline() 🔗

Allow to update an existing pipeline

Return Type
Gha !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
pipelinePipeline !-No description provided
Example
echo 'Custom types are not supported in shell examples'
func (m *myModule) example(name string, pipeline *GhaPipeline) *Gha  {
	return dag.
			Gha().
			WithExistingPipeline(name, pipeline)
}
@function
def example(name: str, pipeline: dag.GhaPipeline) -> dag.Gha:
	return (
		dag.gha()
		.with_existing_pipeline(name, pipeline)
	)
@func()
example(name: string, pipeline: GhaPipeline): Gha {
	return dag
		.gha()
		.withExistingPipeline(name, pipeline)
}

Pipeline 🔗

A Dagger pipeline to be called from a Github Actions configuration

onIssueComment() 🔗

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
types[String ! ] -Run only for certain types of issue comment events See https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#issue_comment
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 on-issue-comment
func (m *myModule) example(name string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			OnIssueComment()
}
@function
def example(name: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.on_issue_comment()
	)
@func()
example(name: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.onIssueComment()
}

onPullRequest() 🔗

Add a trigger to execute a Dagger pipeline on a pull request

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
types[String ! ] -Run only for certain types of pull request events See https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request
branches[String ! ] -Run only for pull requests that target specific branches
paths[String ! ] -Run only for pull requests that target specific paths
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 on-pull-request
func (m *myModule) example(name string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			OnPullRequest()
}
@function
def example(name: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.on_pull_request()
	)
@func()
example(name: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.onPullRequest()
}

onPush() 🔗

Add a trigger to execute a Dagger pipeline on a git push

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
branches[String ! ] -Run only on push to specific branches
tags[String ! ] -Run only on push to specific tags
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 on-push
func (m *myModule) example(name string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			OnPush()
}
@function
def example(name: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.on_push()
	)
@func()
example(name: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.onPush()
}

onSchedule() 🔗

Add a trigger to execute a Dagger pipeline on a schedule time

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
expressions[String ! ] -Cron exressions from https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07.
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 on-schedule
func (m *myModule) example(name string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			OnSchedule()
}
@function
def example(name: str) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.on_schedule()
	)
@func()
example(name: string): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.onSchedule()
}

config() 🔗

Return Type
Directory !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 config
func (m *myModule) example(name string) *Directory  {
	return dag.
			Gha().
			Pipeline(name).
			Config()
}
@function
def example(name: str) -> dagger.Directory:
	return (
		dag.gha()
		.pipeline(name)
		.config()
	)
@func()
example(name: string): Directory {
	return dag
		.gha()
		.pipeline(name)
		.config()
}

withStrategyMatrix() 🔗

Allow to define a matrix for the pipeline

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
values[String ! ] !-No description provided
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 with-strategy-matrix --name string --values string1 --values string2
func (m *myModule) example(name string, name1 string, values []string) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			WithStrategyMatrix(name1, values)
}
@function
def example(name: str, name1: str, values: List[str]) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.with_strategy_matrix(name1, values)
	)
@func()
example(name: string, name1: string, values: string[]): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.withStrategyMatrix(name1, values)
}

withStrategyMaxParallel() 🔗

Define the number of job which can run in parallel

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
valueInteger !-No description provided
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 with-strategy-max-parallel --value integer
func (m *myModule) example(name string, value int) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			WithStrategyMaxParallel(value)
}
@function
def example(name: str, value: int) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.with_strategy_max_parallel(value)
	)
@func()
example(name: string, value: number): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.withStrategyMaxParallel(value)
}

withStrategyFailFast() 🔗

Enable the fail fast trategy in the pipeline

Return Type
Pipeline !
Arguments
NameTypeDefault ValueDescription
enabledBoolean !-No description provided
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 with-strategy-fail-fast --enabled boolean
func (m *myModule) example(name string, enabled bool) *GhaPipeline  {
	return dag.
			Gha().
			Pipeline(name).
			WithStrategyFailFast(enabled)
}
@function
def example(name: str, enabled: bool) -> dag.GhaPipeline:
	return (
		dag.gha()
		.pipeline(name)
		.with_strategy_fail_fast(enabled)
	)
@func()
example(name: string, enabled: boolean): GhaPipeline {
	return dag
		.gha()
		.pipeline(name)
		.withStrategyFailFast(enabled)
}

check() 🔗

Check that the pipeline is valid, in a best effort way

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
repoDirectory -No description provided
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 check
func (m *myModule) example(ctx context.Context, name string)   {
	return dag.
			Gha().
			Pipeline(name).
			Check(ctx)
}
@function
async def example(name: str) -> None:
	return await (
		dag.gha()
		.pipeline(name)
		.check()
	)
@func()
async example(name: string): Promise<void> {
	return dag
		.gha()
		.pipeline(name)
		.check()
}

jobPermissions() 🔗

Return Type
JobPermissions !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions
func (m *myModule) example(name string) *GhaJobPermissions  {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions()
}
@function
def example(name: str) -> dag.GhaJobPermissions:
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
	)
@func()
example(name: string): GhaJobPermissions {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
}

Settings 🔗

publicToken() 🔗

Return Type
String !
Example
Function GhaSettings.publicToken is not accessible from the gha module
Function GhaSettings.publicToken is not accessible from the gha module
Function GhaSettings.publicToken is not accessible from the gha module
Function GhaSettings.publicToken is not accessible from the gha module

daggerVersion() 🔗

Return Type
String !
Example
Function GhaSettings.daggerVersion is not accessible from the gha module
Function GhaSettings.daggerVersion is not accessible from the gha module
Function GhaSettings.daggerVersion is not accessible from the gha module
Function GhaSettings.daggerVersion is not accessible from the gha module

noTraces() 🔗

Return Type
Boolean !
Example
Function GhaSettings.noTraces is not accessible from the gha module
Function GhaSettings.noTraces is not accessible from the gha module
Function GhaSettings.noTraces is not accessible from the gha module
Function GhaSettings.noTraces is not accessible from the gha module

stopEngine() 🔗

Return Type
Boolean !
Example
Function GhaSettings.stopEngine is not accessible from the gha module
Function GhaSettings.stopEngine is not accessible from the gha module
Function GhaSettings.stopEngine is not accessible from the gha module
Function GhaSettings.stopEngine is not accessible from the gha module

asJson() 🔗

Return Type
Boolean !
Example
Function GhaSettings.asJson is not accessible from the gha module
Function GhaSettings.asJson is not accessible from the gha module
Function GhaSettings.asJson is not accessible from the gha module
Function GhaSettings.asJson is not accessible from the gha module

runner() 🔗

Return Type
[String ! ] !
Example
Function GhaSettings.runner is not accessible from the gha module
Function GhaSettings.runner is not accessible from the gha module
Function GhaSettings.runner is not accessible from the gha module
Function GhaSettings.runner is not accessible from the gha module

pullRequestConcurrency() 🔗

Return Type
String !
Example
Function GhaSettings.pullRequestConcurrency is not accessible from the gha module
Function GhaSettings.pullRequestConcurrency is not accessible from the gha module
Function GhaSettings.pullRequestConcurrency is not accessible from the gha module
Function GhaSettings.pullRequestConcurrency is not accessible from the gha module

debug() 🔗

Return Type
Boolean !
Example
Function GhaSettings.debug is not accessible from the gha module
Function GhaSettings.debug is not accessible from the gha module
Function GhaSettings.debug is not accessible from the gha module
Function GhaSettings.debug is not accessible from the gha module

fileExtension() 🔗

Return Type
String !
Example
Function GhaSettings.fileExtension is not accessible from the gha module
Function GhaSettings.fileExtension is not accessible from the gha module
Function GhaSettings.fileExtension is not accessible from the gha module
Function GhaSettings.fileExtension is not accessible from the gha module

repository() 🔗

Return Type
Directory !
Example
Function GhaSettings.repository is not accessible from the gha module
Function GhaSettings.repository is not accessible from the gha module
Function GhaSettings.repository is not accessible from the gha module
Function GhaSettings.repository is not accessible from the gha module

timeoutMinutes() 🔗

Return Type
Integer !
Example
Function GhaSettings.timeoutMinutes is not accessible from the gha module
Function GhaSettings.timeoutMinutes is not accessible from the gha module
Function GhaSettings.timeoutMinutes is not accessible from the gha module
Function GhaSettings.timeoutMinutes is not accessible from the gha module

permissions() 🔗

Return Type
[Enum ! ] !
Example
Function GhaSettings.permissions is not accessible from the gha module
Function GhaSettings.permissions is not accessible from the gha module
Function GhaSettings.permissions is not accessible from the gha module
Function GhaSettings.permissions is not accessible from the gha module

installEngine() 🔗

Return Type
Boolean !
Example
Function GhaSettings.installEngine is not accessible from the gha module
Function GhaSettings.installEngine is not accessible from the gha module
Function GhaSettings.installEngine is not accessible from the gha module
Function GhaSettings.installEngine is not accessible from the gha module

JobPermissions 🔗

Permissions defines the permission levels for various scopes in a job.

contents() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 contents
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Contents()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.contents()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.contents()
}

issues() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 issues
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Issues()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.issues()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.issues()
}

actions() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 actions
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Actions()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.actions()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.actions()
}

packages() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 packages
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Packages()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.packages()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.packages()
}

deployments() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 deployments
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Deployments()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.deployments()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.deployments()
}

pullRequests() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 pull-requests
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			PullRequests()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.pull_requests()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.pullRequests()
}

pages() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 pages
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Pages()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.pages()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.pages()
}

idToken() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 id-token
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			IdToken()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.id_token()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.idToken()
}

repositoryProjects() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 repository-projects
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			RepositoryProjects()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.repository_projects()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.repositoryProjects()
}

statuses() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 statuses
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Statuses()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.statuses()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.statuses()
}

metadata() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 metadata
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Metadata()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.metadata()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.metadata()
}

checks() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 checks
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Checks()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.checks()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.checks()
}

discussions() 🔗

Return Type
Enum !
Example
dagger -m github.com/heuritech/gha@d2696bc595138997a1d00eca0967a4e10c5a6799 call \
 pipeline --name string \
 job-permissions \
 discussions
func (m *myModule) example(name string)   {
	return dag.
			Gha().
			Pipeline(name).
			JobPermissions().
			Discussions()
}
@function
def example(name: str) -> :
	return (
		dag.gha()
		.pipeline(name)
		.job_permissions()
		.discussions()
	)
@func()
example(name: string):  {
	return dag
		.gha()
		.pipeline(name)
		.jobPermissions()
		.discussions()
}