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

30 messages · Page 1 of 1 (latest)

echo imp
#

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:

ERR_PNPM_FETCH_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?

GitHub

Easily build, package, release, update, and deploy your project in any language—on GitHub or any external system—without having to run code yourself.

echo imp
#

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

#

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

median kettle
#

Link?

echo imp
#
#

I do seriously need to figure out a work around for this issue though pepe_sweat

dry pine
echo imp
#

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.

#

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

#

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

#

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

#

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

#

@dry pine no luck in changing regions

dry pine
# echo imp <@286358120676982784> no luck in changing regions

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.

echo imp
#

sure

dry pine
#

This should log the http status in your build logs.

echo imp
#

interesting, it responded 200 there.

#

did something change with pre install env injections?

#

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

#

GITHUB_PACKAGES_TOKEN is in the services env variables

dry pine
#

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)?

echo imp
#

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

#

yeah i tried flipping that on and off

#

i have a build running now

#

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

#

my bad

dry pine
#

No worries, glad you figured it out salute