actions / download-artifact

MIT License
1.44k stars 495 forks source link

The user 'System:PublicAccess;aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource[bug] #336

Open Denauer opened 5 months ago

Denauer commented 5 months ago

What happened?

can't download artifact using actions/download-artifact@v3

What did you expect to happen?

expect download artifact successfully

How can we reproduce it?

have workflow

jobs: build-and-push-image: runs-on: self-hosted timeout-minutes: 45 steps:

jobs: build_publish_image: name: "Build image, calculate tag, publish image" runs-on: self-hosted

outputs:
  tag: ${{ steps.calculate_tag.outputs.tag }}

steps:
  - name: Checkout repository
    uses: actions/checkout@v3

  - name: Calculate tag

  - name: Check tag

  - name: Export variables from KeyVault secrets

  - name: Download application
    uses: actions/download-artifact@v3
    with:
      name: application
      path: build/libs/  

  - name: Build image

Anything else we need to know?

I can manually click at "summary", click "artifacts" and download, but can't do this in my workflow.

I received message

{ "$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 }

What version of the action are you using?

v3

What are your runner environments?

self-hosted

Are you on GitHub Enterprise Server? If so, what version?

No response