(ctx context.Context)
| 1817 | } |
| 1818 | |
| 1819 | func ctxWithProvisionerPermissions(ctx context.Context) context.Context { |
| 1820 | // Use system restricted context which has permissions to update provisioner daemons |
| 1821 | //nolint: gocritic // We need system context to modify this. |
| 1822 | return dbauthz.AsSystemRestricted(ctx) |
| 1823 | } |
| 1824 | |
| 1825 | // UpdateProvisionerLastSeenAt updates the provisioner daemon's LastSeenAt timestamp |
| 1826 | // to the specified time to prevent it from appearing stale during autobuild operations |
no test coverage detected