You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle reduced build data for users who can neither write to nor build the Actor #1641
The Apify API is limiting what it returns about builds to users who can read an Actor but can neither write to it nor build it.
They still see that builds exist, with limited information. Users with write or build access see no change.
What changes in the API
Single build (GET /v2/actor-builds/:buildId and the other build GET routes): returns a reduced build with id, actId, buildNumber, status, startedAt, finishedAt, actVersion, actorDefinition, inputSchema, readme and changelog. Fields such as meta, stats, options and usage are missing.
Build list (GET /v2/acts/:actorId/builds): stays available, but each row has only the ID, build number, status and timestamps.
Build log: returns 404.
What to fix in the CLI
apify builds info: reads build.meta.origin without a guard, so it throws when meta is missing. Omit the origin, duration, compute units and image size lines when their data is absent.
apify builds log and the log step in agent-output.ts: on 404, say that the user does not have access to this build's log, not that the build was not found.
apify builds ls: check it renders reduced rows. Duration comes from the timestamps, which stay.
apify runs info and apify actors info: check they tolerate the reduced build.
Activity