Dagger
Search

pinact

No long description provided.

Installation

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

Entrypoint

Return Type
Pinact !
Arguments
NameTypeDefault ValueDescription
versionString !"3.10.1"pinact version to use.
Example
dagger -m github.com/typesafe-ai/daggerverse/pinact@703b2ab93a09118a1ace1632469373b0b4615bc9 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@703b2ab93a09118a1ace1632469373b0b4615bc9 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()
}

run() 🔗

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 !-Directory containing GitHub Actions workflows.
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@703b2ab93a09118a1ace1632469373b0b4615bc9 call \
 --version string run --source DIR_PATH --verify-comment boolean
func (m *MyModule) Example(ctx context.Context, version string, source *dagger.Directory, verifyComment bool) string  {
	return dag.
			Pinact(version).
			Run(ctx, source, verifyComment)
}
@function
async def example(version: str, source: dagger.Directory, verify_comment: bool) -> str:
	return await (
		dag.pinact(version)
		.run(source, verify_comment)
	)
@func()
async example(version: string, source: Directory, verifyComment: boolean): Promise<string> {
	return dag
		.pinact(version)
		.run(source, verifyComment)
}