Skip to content

Improve api for Caveat Enforcer actions and Client #213

Improve api for Caveat Enforcer actions and Client

Improve api for Caveat Enforcer actions and Client #213

Triggered via pull request August 7, 2025 00:17
Status Failure
Total duration 3m 45s
Artifacts

main.yml

on: pull_request
Check workflows
28s
Check workflows
Matrix: Build, lint, and test / Turbo Pipeline
Matrix: End to end tests / Turbo Pipeline
Code scanner  /  Run security scan
3m 3s
Code scanner / Run security scan
All jobs completed
0s
All jobs completed
All jobs pass
3s
All jobs pass
Determine whether this is a release merge commit
0s
Determine whether this is a release merge commit
Publish release  /  publish-release
Publish release / publish-release
Publish release  /  publish-npm-dry-run
Publish release / publish-npm-dry-run
Publish release  /  publish-npm
Publish release / publish-npm
Fit to window
Zoom out
Zoom in

Annotations

56 errors and 24 warnings
Build, lint, and test / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (22.x)
'"./actions"' has no exported member named 'CaveatEnforcerClient'. Did you mean 'caveatEnforcerActions'?
Build, lint, and test / Turbo Pipeline (22.x)
Module '"./actions"' has no exported member 'createCaveatEnforcerClient'.
Build, lint, and test / Turbo Pipeline (22.x)
Property 'args' does not exist on type 'Caveat | undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Property 'terms' does not exist on type 'Caveat | undefined'.
Build, lint, and test / Turbo Pipeline (22.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
End to end tests / Turbo Pipeline (20.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (20.x)
@metamask/delegation-toolkit#build: command (/home/runner/work/delegation-toolkit/delegation-toolkit/packages/delegation-toolkit) /tmp/xfs-e99ede67/yarn run build exited (2)
End to end tests / Turbo Pipeline (20.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (20.x)
'"./actions"' has no exported member named 'CaveatEnforcerClient'. Did you mean 'caveatEnforcerActions'?
End to end tests / Turbo Pipeline (20.x)
Module '"./actions"' has no exported member 'createCaveatEnforcerClient'.
End to end tests / Turbo Pipeline (20.x)
Property 'args' does not exist on type 'Caveat | undefined'.
End to end tests / Turbo Pipeline (20.x)
Property 'terms' does not exist on type 'Caveat | undefined'.
End to end tests / Turbo Pipeline (20.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
End to end tests / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (22.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (22.x)
Object is possibly 'undefined'.
End to end tests / Turbo Pipeline (22.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
End to end tests / Turbo Pipeline (22.x)
'"./actions"' has no exported member named 'CaveatEnforcerClient'. Did you mean 'caveatEnforcerActions'?
End to end tests / Turbo Pipeline (22.x)
Module '"./actions"' has no exported member 'createCaveatEnforcerClient'.
End to end tests / Turbo Pipeline (22.x)
Property 'args' does not exist on type 'Caveat | undefined'.
End to end tests / Turbo Pipeline (22.x)
Property 'terms' does not exist on type 'Caveat | undefined'.
End to end tests / Turbo Pipeline (22.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
End to end tests / Turbo Pipeline (22.x)
The strategy configuration was canceled because "end-to-end-tests.pipeline._20_x" failed
Build, lint, and test / Turbo Pipeline (20.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (20.x)
@metamask/delegation-toolkit#build: command (/home/runner/work/delegation-toolkit/delegation-toolkit/packages/delegation-toolkit) /tmp/xfs-4a30a206/yarn run build exited (2)
Build, lint, and test / Turbo Pipeline (20.x)
'"./actions"' has no exported member named 'CaveatEnforcerClient'. Did you mean 'caveatEnforcerActions'?
Build, lint, and test / Turbo Pipeline (20.x)
Module '"./actions"' has no exported member 'createCaveatEnforcerClient'.
Build, lint, and test / Turbo Pipeline (20.x)
Property 'args' does not exist on type 'Caveat | undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Property 'terms' does not exist on type 'Caveat | undefined'.
Build, lint, and test / Turbo Pipeline (20.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
Build, lint, and test / Turbo Pipeline (20.x)
The strategy configuration was canceled because "build-lint-test.pipeline._22_x" failed
Build, lint, and test / Turbo Pipeline (18.x)
Argument of type '{ caveats: { enforcer: string; terms: string; args: string; }[]; delegate: `0x${string}`; delegator: `0x${string}`; authority: `0x${string}`; salt: `0x${string}`; signature: `0x${string}`; }' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
@metamask/delegation-toolkit#build: command (/home/runner/work/delegation-toolkit/delegation-toolkit/packages/delegation-toolkit) /tmp/xfs-3bb4103e/yarn run build exited (2)
Build, lint, and test / Turbo Pipeline (18.x)
Object is possibly 'undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
Argument of type 'Delegation' is not assignable to parameter of type 'DelegationStruct<`0x${string}` | Uint8Array>'.
Build, lint, and test / Turbo Pipeline (18.x)
'"./actions"' has no exported member named 'CaveatEnforcerClient'. Did you mean 'caveatEnforcerActions'?
Build, lint, and test / Turbo Pipeline (18.x)
Module '"./actions"' has no exported member 'createCaveatEnforcerClient'.
Build, lint, and test / Turbo Pipeline (18.x)
Property 'args' does not exist on type 'Caveat | undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
Property 'terms' does not exist on type 'Caveat | undefined'.
Build, lint, and test / Turbo Pipeline (18.x)
Module '"../delegation"' declares 'hashDelegation' locally, but it is not exported.
Build, lint, and test / Turbo Pipeline (18.x)
The strategy configuration was canceled because "build-lint-test.pipeline._22_x" failed
End to end tests / Turbo Pipeline (18.x)
The operation was canceled.
End to end tests / Turbo Pipeline (18.x)
The strategy configuration was canceled because "end-to-end-tests.pipeline._20_x" failed
All jobs pass
Process completed with exit code 1.
Build, lint, and test / Turbo Pipeline (22.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (22.x)
Failed to restore: Cache service responded with 400
Build, lint, and test / Turbo Pipeline (22.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (20.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (20.x)
Failed to restore: Cache service responded with 400
End to end tests / Turbo Pipeline (20.x)
Cache save failed.
End to end tests / Turbo Pipeline (20.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (22.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (22.x)
Failed to restore: Cache service responded with 400
End to end tests / Turbo Pipeline (22.x)
Cache save failed.
End to end tests / Turbo Pipeline (22.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (20.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (20.x)
Failed to restore: Cache service responded with 400
Build, lint, and test / Turbo Pipeline (20.x)
Cache save failed.
Build, lint, and test / Turbo Pipeline (20.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (18.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Build, lint, and test / Turbo Pipeline (18.x)
Failed to restore: Cache service responded with 400
Build, lint, and test / Turbo Pipeline (18.x)
Cache save failed.
Build, lint, and test / Turbo Pipeline (18.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (18.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
End to end tests / Turbo Pipeline (18.x)
Failed to restore: Cache service responded with 400
End to end tests / Turbo Pipeline (18.x)
Cache save failed.
End to end tests / Turbo Pipeline (18.x)
Unexpected input(s) 'submodules', valid inputs are ['is-high-risk-environment', 'fetch-depth', 'ref', 'cache-node-modules', 'node-version', 'skip-allow-scripts', 'yarn-install-max-retries', 'yarn-custom-url']
Code scanner / Run security scan
Unable to validate code scanning workflow: error: getWorkflow() failed: Error: Expected to find a code scanning workflow file at /home/runner/work/delegation-toolkit/delegation-toolkit/.github/workflows/main.yml, but no such file existed. This can happen if the currently running workflow checks out a branch that doesn't contain the corresponding workflow file.