pinact
No long description provided.
Installation
dagger install github.com/typesafe-ai/daggerverse/pinact@636af9bbbfa5fdc4d977e2ebede942b97abe9b04Entrypoint
Return Type
Pinact !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String ! | "4.0.0" | pinact version to use. |
Example
dagger -m github.com/typesafe-ai/daggerverse/pinact@636af9bbbfa5fdc4d977e2ebede942b97abe9b04 call \
--version stringfunc (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@636af9bbbfa5fdc4d977e2ebede942b97abe9b04 call \
--version string versionfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Repository root containing `.github` and optionally `.pinact.yaml`. |
| githubToken | Secret ! | - | GitHub token for resolving SHAs via the GitHub API. |
| config | File | null | Non-default path to `.pinact.yaml` configuration file. |
| verifyComment | Boolean ! | true | Verify and fix version comments. |
| extraArgs | [String ! ] | null | Additional arguments to pass to `pinact run`. |
Example
dagger -m github.com/typesafe-ai/daggerverse/pinact@636af9bbbfa5fdc4d977e2ebede942b97abe9b04 call \
--version string fix --github-token env:MYSECRET --verify-comment booleanfunc (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
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Repository root containing `.github` and optionally `.pinact.yaml`. |
| config | File | null | Non-default path to `.pinact.yaml` configuration file. |
| githubToken | Secret | null | GitHub token for resolving SHAs via the GitHub API. |
| verifyComment | Boolean ! | false | Verify that version comments match the pinned SHA. |
| extraArgs | [String ! ] | null | Additional arguments to pass to `pinact run`. |
Example
dagger -m github.com/typesafe-ai/daggerverse/pinact@636af9bbbfa5fdc4d977e2ebede942b97abe9b04 call \
--version string lint --verify-comment booleanfunc (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)
}