Giter VIP home page Giter VIP logo

Comments (3)

younsl avatar younsl commented on July 19, 2024

In my opinion(I'm not sure though), actions-sync doesn't support fine-grained PAT not yet.

Environment

  • AWS EC2 Workload (amd64)
  • GHES v3.11.2 ami 2023-12-26 14ec057d89
  • GHES Actions Sync v0.2

I already downloaded actions-sync using wget on EC2 local:

wget https://github.com/actions/actions-sync/releases/download/v202303192358/gh_202303192358_linux_amd64.tar.gz
tar -zxvf gh_202303192358_linux_amd64.tar.gz

Result running actions-sync command

My fine-grained PAT include below permissions:

Contents: Read and write
Metadata: Read-only
Workflows: Read and write

Run actions-sync command locally in GHES EC2 instance:

$ ./actions-sync sync \
  --cache-dir "/tmp/cache" \
  --destination-token "github_pat_11AA..." \
  --destination-url "https://github.<REDACTED>.<REDACTED>" \
  --repo-name actions/setup-node:actions/setup-node

It fails with a 401 Bad credentials error:

fetching * refs for actions/setup-node ...
not using impersonation for the requests
...
error creating github repository `actions/setup-node`: error retrieving authenticated user: GET https://github.<REDACTED>.<REDACTED>/api/v3/user: 401 Bad credentials []

from actions-sync.

github-actions avatar github-actions commented on July 19, 2024

This issue is stale because it has been open for 30 days with no activity.

from actions-sync.

github-actions avatar github-actions commented on July 19, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

from actions-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.