private github packages all of a sudden not installing with known working github access token
Anonymous
FREEOP

a month ago

I have known working github packages token getting 403, was working yesterday, tried with fresh token.

Confirmed working with curl -H "Authorization: Bearer ghp_xxxxx" \

"https://npm.pkg.github.com/@redacted" locally, but when installing I get this error:

 ERRPNPMFETCH_403  GET https://npm.pkg.github.com/download/@redacted: Forbidden - 403

An authorization header was used: Bearer ghp_[hidden]

These authorization settings were found:

@jsr:registry=https://npm.jsr.io/

@redacted:registry=https://npm.pkg.github.com

//npm.pkg.github.com/:authToken=ghp[hidden]

Is there some work around for this?

Solved

29 Replies

Anonymous
FREEOP

a month ago

1466876429160550700
1466876430133493800
1466876430582288600


Anonymous
FREEOP

a month ago

this guy should get banned from station threads, he's trying to cherry pick github issues to farm bounties.


Anonymous
FREEOP

a month ago

he responded within only 2 minutes of the thread being auto toggled to public.


Anonymous
FREEOP

a month ago

1466876837828493600


a month ago

Link?



Anonymous
FREEOP

a month ago

I do seriously need to figure out a work around for this issue though <:pepe_sweat:786868788560920576>


a month ago

Just to confirm it, it works locally but stopped working on Railway since yesterday?


Anonymous
FREEOP

a month ago

Correct.

The direct curl from local with the same Bearer railway is using works, but the installation fails here in railway all of a sudden.


Anonymous
FREEOP

a month ago

I even tried temporarily subbing in a token with higher access scope, no dice.


Anonymous
FREEOP

a month ago

I have a root .npmrc that is being fed by the services env variables


Anonymous
FREEOP

a month ago

Haven’t had any issues until now, no major changes to the package / org permissions upstream.


Anonymous
FREEOP

a month ago

Hmm maybe I can try changing the region of the service for now? Giving it a shot.


Anonymous
FREEOP

a month ago

@uxuz no luck in changing regions


a month ago

Can you create a new private repository and deploy it with this Dockerfile being the only thing in the said repo?

FROM alpine:latest

RUN apk add --no-cache curl

RUN curl -fsS -o /dev/null -L \
    -H "Authorization: Bearer ..." \
    -w "HTTP Status: %{http_code}\n" \
    https://example.com

CMD ["echo", "done"]

Insert additional headers and authorization headers as needed, also replace the URL with the actual one as opposed to example.com.


Anonymous
FREEOP

a month ago

sure


a month ago

This should log the http status in your build logs.

1466884732280111000


Anonymous
FREEOP

a month ago

interesting, it responded 200 there.


Anonymous
FREEOP

a month ago

did something change with pre install env injections?


Anonymous
FREEOP

a month ago

well no, it looks like it is working properly:

⁨⁨```
An authorization header was used: Bearer ghp[hidden]

These authorization settings were found:
@jsr:registry=https://npm.jsr.io/
@opengameprotocol:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:authToken=ghp[hidden]⁩

this is the shape of my .npmrc:

⁩@opengameprotocol:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_TOKEN} always-auth=true


Anonymous
FREEOP

a month ago

GITHUBPACKAGESTOKEN is in the services env variables


a month ago

Hmm, I wonder if the metal build environment has anything to do with this, can you check if the affected service has it enabled/disabled (it can be found in the service's settings)?


Anonymous
FREEOP

a month ago

ah sorry i edited it to make sure you didn't think it actually logged redacted and it mogged the code block lol


Anonymous
FREEOP

a month ago

yeah i tried flipping that on and off



Anonymous
FREEOP

a month ago

i have a build running now


Anonymous
FREEOP

a month ago

ah, okay sorry for wasting your guys time…

I think I found the issue, the metadata endpoint works but the download is blocked by billing on our end <:cryfistsq:1238327748464873472>


Anonymous
FREEOP

a month ago

my bad


a month ago

No worries, glad you figured it out <:salute:1137099685417451530>


Status changed to Solved uxuz about 1 month ago


Loading...