actions / actions/checkout

Is it possible to checkout to enterprise github repo from non enterprise public repo in github actions?

Open
#563 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

I want to checkout to enterprise github repo from non-enterprise public repo. These are my actions:

jobs:
  checkout:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.x]
    steps:
    - name: Checkout private tools
      uses: actions/checkout@v2
      with:
        repository: enterprise/repo
        token: ${{ secrets.ENTERPRISE_TOKEN }} 
        path: main

but as I saw it will clone https://github.com/enterprise/repo, but my enterprise account is on a different domain. Is it possible to checkout to the enterprise account?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the checkout action's repository and the workflow entry shown in the issue, especially actions/checkout@v2 and its repository, token, and path inputs. Determine whether checkout supports an enterprise GitHub host from a public repository, and document the supported configuration or the limitation as the completed outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.