Dagger
Search

pinact

No long description provided.

Installation

dagger install github.com/typesafe-ai/daggerverse/pinact@ffe9369e28667bedee1812d51e0e279df364eeeb

Entrypoint

Return Type
Pinact !
Arguments
NameTypeDefault ValueDescription
versionString !"4.0.0"pinact version to use.
Example
dagger -m github.com/typesafe-ai/daggerverse/pinact@ffe9369e28667bedee1812d51e0e279df364eeeb call \
 --version string
func (m *MyModule) Example(version string) *dagger.Pinact  {
	return dag.
			Pinact(version)
}
@function
def example(version: str) -> dagger.Pinact:
	return (
		dag.pinact(version)
	)
@func()
example(version: string): Pinact {
	return dag
		.pinact(version)
}

Types

Pinact 🔗

Pin GitHub Actions to full-length commit SHAs.

version() 🔗

pinact version to use.

Return Type
String !
Example
dagger -m github.com/typesafe-ai/daggerverse/pinact@ffe9369e28667bedee1812d51e0e279df364eeeb call \
 --version string version
func (m *MyModule) Example(ctx context.Context, version string) string  {
	return dag.
			Pinact(version).
			Version(ctx)
}
@function
async def example(version: str) -> str:
	return await (
		dag.pinact(version)
		.version()
	)
@func()
async example(version: string): Promise<string> {
	return dag
		.pinact(version)
		.version()
}

fix() 🔗

Pin unpinned GitHub Actions to full-length commit SHAs.

Returns a Changeset applied to the host.

Return Type
Changeset !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -Repository root containing `.github` and optionally `.pinact.yaml`.
githubTokenSecret !-GitHub token for resolving SHAs via the GitHub API.
configFile nullOverride the auto-detected `.pinact.yaml` configuration file.
verifyCommentBoolean !trueVerify and fix version comments.
extraArgs[String ! ] nullAdditional arguments to pass to `pinact run`.
Example
dagger -m github.com/typesafe-ai/daggerverse/pinact@ffe9369e28667bedee1812d51e0e279df364eeeb call \
 --version string fix --github-token env:MYSECRET --verify-comment boolean
func (m *MyModule) Example(version string, githubToken *dagger.Secret, verifyComment bool) *dagger.Changeset  {
	return dag.
			Pinact(version).
			Fix(githubToken, verifyComment)
}
@function
def example(version: str, github_token: dagger.Secret, verify_comment: bool) -> dagger.Changeset:
	return (
		dag.pinact(version)
		.fix(github_token, verify_comment)
	)
@func()
example(version: string, githubToken: Secret, verifyComment: boolean): Changeset {
	return dag
		.pinact(version)
		.fix(githubToken, verifyComment)
}

lint() 🔗

Check that GitHub Actions are pinned to full-length commit SHAs.

Exits non-zero if unpinned actions are found.

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -Repository root containing `.github` and optionally `.pinact.yaml`.
configFile nullOverride the auto-detected `.pinact.yaml` configuration file.
githubTokenSecret nullGitHub token for resolving SHAs via the GitHub API.
verifyCommentBoolean !falseVerify that version comments match the pinned SHA.
extraArgs[String ! ] nullAdditional arguments to pass to `pinact run`.
Example
dagger -m github.com/typesafe-ai/daggerverse/pinact@ffe9369e28667bedee1812d51e0e279df364eeeb call \
 --version string lint --verify-comment boolean
func (m *MyModule) Example(ctx context.Context, version string, verifyComment bool) string  {
	return dag.
			Pinact(version).
			Lint(ctxverifyComment)
}
@function
async def example(version: str, verify_comment: bool) -> str:
	return await (
		dag.pinact(version)
		.lint(verify_comment)
	)
@func()
async example(version: string, verifyComment: boolean): Promise<string> {
	return dag
		.pinact(version)
		.lint(verifyComment)
}