Skip to content

The user 'System:PublicAccess;aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource #236

Closed as not planned
@noraj

Description

@noraj

My workflow: https://github.com/IDLFAC/CyberMots/blob/d44c761d6c81c72ce60e32f1d4b43b25d9c15ff4/.github/workflows/ruby.yml

  • build job ✅
  • deploy job ❌

deploy job logs https://github.com/IDLFAC/CyberMots/actions/runs/6442789709/job/17493982576

The error itself is not helpful:

Error: Creating Pages deployment failed
Error: HttpError: invalid json response body at https://api.github.com/repos/IDLFAC/CyberMots/pages/deployments reason: Unexpected end of JSON input

If I check the Artifact exchange URL:

{
  "$id": "1",
  "innerException": null,
  "message": "The user 'System:PublicAccess;aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.",
  "typeName": "Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server",
  "typeKey": "UnauthorizedRequestException",
  "errorCode": 0,
  "eventId": 3000
}

I know the permissions is set globally and not on the deploy job directly but this is working on others workflows on other projects.

When I check the API message:

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest"
}

But the repository does exists and is configured to use Github Pages with Github Actions (settings at https://github.com/IDLFAC/CyberMots/settings/pages).

Whatever the issue is, I think the error messages and error handling could be greatly improved.

Metadata

Metadata

Assignees

Labels

duplicateThis issue or pull request already exists

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions