Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using PAT to access private repository #9049

Open
Ciloe opened this issue Apr 9, 2024 · 0 comments
Open

Using PAT to access private repository #9049

Ciloe opened this issue Apr 9, 2024 · 0 comments

Comments

@Ciloe
Copy link

Ciloe commented Apr 9, 2024

Hi there !

I tried to connect to a private repository with yarn. I added this line :

package.json

"dependencies": {
  "wtd-tsx": "git+https://<PAT>:x-oauth-basic@github.com/<owner>/<repo>.git#main"
}

But I have this error in github action :
Capture d’écran 2024-04-09 à 11 26 21

I tried to do some other things :

.yarnrc

"@repeaterstore:wtd-tsx" "https://npm.pkg.github.com"

Or add PAT in secrets in the workflow

      - name: Checkout
        uses: actions/checkout@v4
        with:
          ref: ${{ inputs.ref }}

      - uses: actions/setup-node@v4.0.2
        with:
          node-version: '18'

      - name: Install for CI
        env:
          NODE_AUTH_TOKEN: ${{ secrets.PAT }}
        run: yarn

This is the PAT config :
Capture d’écran 2024-04-09 à 11 31 26

It's working fine in local

Have you got any other ideas ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant