Dagger
Search

central-devsecops-pipeline

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/munichbughunter/central-devsecops-pipeline@v0.1.0

Entrypoint

Return Type
CentralDevsecopsPipeline
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@ce6841c9e6bf27ed50a14b037ecaa2dcf1b18826 call \
func (m *MyModule) Example() *dagger.CentralDevsecopsPipeline  {
	return dag.
			CentralDevsecopsPipeline()
}
@function
def example() -> dagger.CentralDevsecopsPipeline:
	return (
		dag.central_devsecops_pipeline()
	)
@func()
example(): CentralDevsecopsPipeline {
	return dag
		.centralDevsecopsPipeline()
}

Types

CentralDevsecopsPipeline 🔗

buildPython() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
pythonVersionString !-No description provided
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@ce6841c9e6bf27ed50a14b037ecaa2dcf1b18826 call \
 build-python --src DIR_PATH --python-version string
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory, pythonVersion string) string  {
	return dag.
			CentralDevsecopsPipeline().
			BuildPython(ctx, src, pythonVersion)
}
@function
async def example(src: dagger.Directory, python_version: str) -> str:
	return await (
		dag.central_devsecops_pipeline()
		.build_python(src, python_version)
	)
@func()
async example(src: Directory, pythonVersion: string): Promise<string> {
	return dag
		.centralDevsecopsPipeline()
		.buildPython(src, pythonVersion)
}

buildDefaultPythonImageAndPublish() 🔗

Build and publish the default Python image via the central pipeline

Return Type
String !
Arguments
NameTypeDefault ValueDescription
imageTagString !-No description provided
githubUsernameString !-No description provided
githubTokenSecret !-No description provided
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@ce6841c9e6bf27ed50a14b037ecaa2dcf1b18826 call \
 build-default-python-image-and-publish --image-tag string --github-username string --github-token env:MYSECRET
func (m *MyModule) Example(ctx context.Context, imageTag string, githubUsername string, githubToken *dagger.Secret) string  {
	return dag.
			CentralDevsecopsPipeline().
			BuildDefaultPythonImageAndPublish(ctx, imageTag, githubUsername, githubToken)
}
@function
async def example(image_tag: str, github_username: str, github_token: dagger.Secret) -> str:
	return await (
		dag.central_devsecops_pipeline()
		.build_default_python_image_and_publish(image_tag, github_username, github_token)
	)
@func()
async example(imageTag: string, githubUsername: string, githubToken: Secret): Promise<string> {
	return dag
		.centralDevsecopsPipeline()
		.buildDefaultPythonImageAndPublish(imageTag, githubUsername, githubToken)
}

runSast() 🔗

Return Type
String !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/munichbughunter/central-devsecops-pipeline@ce6841c9e6bf27ed50a14b037ecaa2dcf1b18826 call \
 run-sast --src DIR_PATH
func (m *MyModule) Example(ctx context.Context, src *dagger.Directory) string  {
	return dag.
			CentralDevsecopsPipeline().
			RunSast(ctx, src)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.central_devsecops_pipeline()
		.run_sast(src)
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.centralDevsecopsPipeline()
		.runSast(src)
}