Create a scope suited to a CI/CD agent: read, record, push, pull.
()
| 306 | |
| 307 | /// Create a scope suited to a CI/CD agent: read, record, push, pull. |
| 308 | pub fn ci_cd() -> Self { |
| 309 | Self { |
| 310 | permissions: vec![ |
| 311 | DelegationPermission::Read, |
| 312 | DelegationPermission::Record, |
| 313 | DelegationPermission::Push, |
| 314 | DelegationPermission::Pull, |
| 315 | ], |
| 316 | ..Default::default() |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | /// Create a builder for custom scopes. |
| 321 | pub fn builder() -> DelegationScopeBuilder { |
nothing calls this directly
no outgoing calls
no test coverage detected