Dagger
Search

zizmor

Zizmor lints GitHub Actions workflows for security issues using zizmor.

Installation

dagger install github.com/MacroPower/x/toolchains/zizmor@483dc69c30e485db85d928723096efa22c3603c6

Entrypoint

Return Type
Zizmor !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -Project source directory. Ignore patterns belong in the consuming project's root dagger.json customizations, not here.
imageString -zizmor container image.
configPathString -Path to the zizmor config file, relative to the source root.
workflowsDirString -Directory of workflows to lint, relative to the source root.
Example
dagger -m github.com/MacroPower/x/toolchains/zizmor@483dc69c30e485db85d928723096efa22c3603c6 call \
func (m *MyModule) Example() *dagger.Zizmor  {
	return dag.
			Zizmor()
}
@function
def example() -> dagger.Zizmor:
	return (
		dag.zizmor()
	)
@func()
example(): Zizmor {
	return dag
		.zizmor()
}

Types

Zizmor 🔗

Zizmor lints GitHub Actions workflows for security issues using zizmor. Create instances with [New].

source() 🔗

Project source directory.

Return Type
Directory !
Example
dagger -m github.com/MacroPower/x/toolchains/zizmor@483dc69c30e485db85d928723096efa22c3603c6 call \
 source
func (m *MyModule) Example() *dagger.Directory  {
	return dag.
			Zizmor().
			Source()
}
@function
def example() -> dagger.Directory:
	return (
		dag.zizmor()
		.source()
	)
@func()
example(): Directory {
	return dag
		.zizmor()
		.source()
}

image() 🔗

zizmor container image reference.

Return Type
String !
Example
dagger -m github.com/MacroPower/x/toolchains/zizmor@483dc69c30e485db85d928723096efa22c3603c6 call \
 image
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Zizmor().
			Image(ctx)
}
@function
async def example() -> str:
	return await (
		dag.zizmor()
		.image()
	)
@func()
async example(): Promise<string> {
	return dag
		.zizmor()
		.image()
}

configPath() 🔗

Path to the zizmor config file, relative to the source root.

Return Type
String !
Example
dagger -m github.com/MacroPower/x/toolchains/zizmor@483dc69c30e485db85d928723096efa22c3603c6 call \
 config-path
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Zizmor().
			ConfigPath(ctx)
}
@function
async def example() -> str:
	return await (
		dag.zizmor()
		.config_path()
	)
@func()
async example(): Promise<string> {
	return dag
		.zizmor()
		.configPath()
}

workflowsDir() 🔗

Directory of workflows to lint, relative to the source root.

Return Type
String !
Example
dagger -m github.com/MacroPower/x/toolchains/zizmor@483dc69c30e485db85d928723096efa22c3603c6 call \
 workflows-dir
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Zizmor().
			WorkflowsDir(ctx)
}
@function
async def example() -> str:
	return await (
		dag.zizmor()
		.workflows_dir()
	)
@func()
async example(): Promise<string> {
	return dag
		.zizmor()
		.workflowsDir()
}

lint() 🔗

Lint runs zizmor against the workflows directory using the configured config file.

Return Type
Void !
Example
dagger -m github.com/MacroPower/x/toolchains/zizmor@483dc69c30e485db85d928723096efa22c3603c6 call \
 lint
func (m *MyModule) Example(ctx context.Context)   {
	return dag.
			Zizmor().
			Lint(ctx)
}
@function
async def example() -> None:
	return await (
		dag.zizmor()
		.lint()
	)
@func()
async example(): Promise<void> {
	return dag
		.zizmor()
		.lint()
}

lintBase() 🔗

LintBase returns the zizmor container with the project source mounted at /src. It is exposed so consumers can wrap it (e.g. with a cache-bust) for benchmarks without pulling in another toolchain dependency.

Return Type
Container !
Example
dagger -m github.com/MacroPower/x/toolchains/zizmor@483dc69c30e485db85d928723096efa22c3603c6 call \
 lint-base
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			Zizmor().
			LintBase()
}
@function
def example() -> dagger.Container:
	return (
		dag.zizmor()
		.lint_base()
	)
@func()
example(): Container {
	return dag
		.zizmor()
		.lintBase()
}