php-composer-security-checker
No long description provided.
Installation
dagger install github.com/mykiwi/daggerverse/php-composer-security-checker@77bf2f73f5e82ea373e5f31a2963b9f41d077146
Entrypoint
Return Type
PhpComposerSecurityChecker
Example
dagger -m github.com/mykiwi/daggerverse/php-composer-security-checker@77bf2f73f5e82ea373e5f31a2963b9f41d077146 call \
func (m *myModule) example() *PhpComposerSecurityChecker {
return dag.
PhpComposerSecurityChecker()
}
@function
def example() -> dag.PhpComposerSecurityChecker:
return (
dag.php_composer_security_checker()
)
@func()
example(): PhpComposerSecurityChecker {
return dag
.phpComposerSecurityChecker()
}
Types
PhpComposerSecurityChecker 🔗
container() 🔗
Returns a container with composer
Return Type
Container !
Example
dagger -m github.com/mykiwi/daggerverse/php-composer-security-checker@77bf2f73f5e82ea373e5f31a2963b9f41d077146 call \
container
func (m *myModule) example() *Container {
return dag.
PhpComposerSecurityChecker().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.php_composer_security_checker()
.container()
)
@func()
example(): Container {
return dag
.phpComposerSecurityChecker()
.container()
}
binary() 🔗
Returns the composer binary
Return Type
File !
Example
dagger -m github.com/mykiwi/daggerverse/php-composer-security-checker@77bf2f73f5e82ea373e5f31a2963b9f41d077146 call \
binary
func (m *myModule) example() *File {
return dag.
PhpComposerSecurityChecker().
Binary()
}
@function
def example() -> dagger.File:
return (
dag.php_composer_security_checker()
.binary()
)
@func()
example(): File {
return dag
.phpComposerSecurityChecker()
.binary()
}
securityCheck() 🔗
Verify if your PHP dependencies have known security vulnerabilities
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
project | Directory ! | - | Path directory with a "composer.json" & "composer.lock" file |
noDev | Boolean ! | false | Disables auditing of require-dev packages |
format | String ! | "table" | Output format. Must be "table", "plain", "json", or "summary" |
locked | Boolean ! | true | Audit based on the lock file instead of the installed packages |
Example
dagger -m github.com/mykiwi/daggerverse/php-composer-security-checker@77bf2f73f5e82ea373e5f31a2963b9f41d077146 call \
security-check --project DIR_PATH --no-dev boolean --format string --locked boolean
func (m *myModule) example(ctx context.Context, project *Directory, noDev bool, format string, locked bool) string {
return dag.
PhpComposerSecurityChecker().
SecurityCheck(ctx, project, noDev, format, locked)
}
@function
async def example(project: dagger.Directory, no_dev: bool, format: str, locked: bool) -> str:
return await (
dag.php_composer_security_checker()
.security_check(project, no_dev, format, locked)
)
@func()
async example(project: Directory, noDev: boolean, format: string, locked: boolean): Promise<string> {
return dag
.phpComposerSecurityChecker()
.securityCheck(project, noDev, format, locked)
}