Suddenly started receiving 403 Forbidden when fetching private packages in Github Actions #29019
Replies: 4 comments
-
I got the same problem when I did: ➤ YN0027: my-package@unknown can't be resolved to a satisfying range Do you have any aidea? |
Beta Was this translation helpful? Give feedback.
-
We had the same issue, sort of. We have no issue downloading packages from new package repositories, however, we have problems querying for package versions. What we found is that new package repositories do not have the Also, |
Beta Was this translation helpful? Give feedback.
-
In my case the issue was the billing limit,
|
Beta Was this translation helpful? Give feedback.
-
I just ran into this. For me the problem was that I had set some permissions incorrectly in my job. permissions:
id-token: write This The fixed yaml: permissions:
id-token: write
+ contents: read |
Beta Was this translation helpful? Give feedback.
-
Hi,
Today we suddenly started receiving 403 Forbidden when installing private packages in an action:
error An unexpected error occurred: "https://npm.pkg.github.com/download/<our-org>/<package-name>/<version>/c465454e5b804aedd348669764fb1bc7ae6a68ec: Request failed \"403 Forbidden\"".
The issue only occurred for a new package published today and we noticed that Github recently (have not seen it before at least) has extended package settings in order to define permissions for packages. However, when updating the permissions to match previous packages we are still getting the 403 from actions.
Locally we are able to install the packages but for some reason the standard
GITHUB_TOKEN
or${{ github.token }}
does not have the right permissions. (The GitHub token has the default permissions read/write permissions on the organization level.)Beta Was this translation helpful? Give feedback.
All reactions