get-installation-token
No long description provided.
Installation
dagger install github.com/jpadams/get-installation-token@aa2d3a8abec3ec3eda1c976b15b93009168705df
Entrypoint
Return Type
GetInstallationToken !
Example
dagger -m github.com/jpadams/get-installation-token@aa2d3a8abec3ec3eda1c976b15b93009168705df call \
func (m *myModule) example() *GetInstallationToken {
return dag.
GetInstallationToken()
}
@function
def example() -> dag.GetInstallationToken:
return (
dag.get_installation_token()
)
@func()
example(): GetInstallationToken {
return dag
.getInstallationToken()
}
Types
GetInstallationToken 🔗
installationToken() 🔗
Returns short-lived installation token for gh app given owner and repo
Return Type
Secret !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
id | String ! | - | No description provided |
owner | String ! | - | No description provided |
repo | String ! | - | No description provided |
pem | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
Example
dagger -m github.com/jpadams/get-installation-token@aa2d3a8abec3ec3eda1c976b15b93009168705df call \
installation-token --id string --owner string --repo string --pem env:MYSECRET
func (m *myModule) example(id string, owner string, repo string, pem *Secret) *Secret {
return dag.
GetInstallationToken().
InstallationToken(id, owner, repo, pem)
}
@function
def example(id: str, owner: str, repo: str, pem: dagger.Secret) -> dagger.Secret:
return (
dag.get_installation_token()
.installation_token(id, owner, repo, pem)
)
@func()
example(id: string, owner: string, repo: string, pem: Secret): Secret {
return dag
.getInstallationToken()
.installationToken(id, owner, repo, pem)
}
jwt() 🔗
Returns JWT for given App ID and secret key pemfile
Return Type
Secret !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
id | String ! | - | No description provided |
pem | Secret ! | - | A reference to a secret value, which can be handled more safely than the value itself. |
Example
dagger -m github.com/jpadams/get-installation-token@aa2d3a8abec3ec3eda1c976b15b93009168705df call \
jwt --id string --pem env:MYSECRET
func (m *myModule) example(id string, pem *Secret) *Secret {
return dag.
GetInstallationToken().
Jwt(id, pem)
}
@function
def example(id: str, pem: dagger.Secret) -> dagger.Secret:
return (
dag.get_installation_token()
.jwt(id, pem)
)
@func()
example(id: string, pem: Secret): Secret {
return dag
.getInstallationToken()
.jwt(id, pem)
}