question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Internal/Private repo actions not functioning although repo option is set properly

See original GitHub issue

Recently found this option in repositoing settings > actions image

Set it to org access as seen in the screenshot.

I tried to run the action directly from another repos workflow but it failed saying:

Download action repository '<org-removed>/<repo-removed>@master' (SHA:0543e0509f1b2b87c304e1789859bad624b9fabd)
32
Error: An action could not be found at the URI 'https://api.github.com/repos/<org-removed>/<repo-removed>/tarball/0543e0509f1b2b87c304e1789859bad624b9fabd'

Seems like I’m not the only one in the community that has run into this: https://github.community/t/github-action-action-in-private-repository/16063/76?u=timharris777

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:11
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ricCapcommented, Jan 13, 2022

The option you set is for reusable workflows, not for actions.

If I did not miss anything, to use actions from internal/private repositories you still first need to check out the repo. Here’s the documentation https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#example-using-an-action-inside-a-different-private-repository-than-the-workflow

There is an open ticket in the Github roadmap for using actions from internal repos https://github.com/github/roadmap/issues/74

1reaction
Drowzecommented, Jan 21, 2022

Latest announcement on changelog: https://github.blog/changelog/2022-01-21-share-github-actions-within-your-enterprise/

That’s promising! It looks though that it is still limited to enterprise internal (not private) repositories. I believe internal repositories are available for on-prem enterprise GitHub, right? (in my usecase, we have an enterprise GitHub organization account, but we do not have an active GitHub on-prem)

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Actions can't access private repos? Here's how to fix it
GitHub Actions can't access private repos? Here's how to fix it ; Updating git repository `https://github.com/Michael-F-Bryan/my-secret-repo.git ...
Read more >
github action cannot use action from private repo
The documentation seems to suggest this is possible for internal repositories of GitHub Enterprise Cloud for organizations, Allowing access ...
Read more >
FINALLY! Custom GitHub Actions in Internal Repos
Just go to the repo Settings, scroll down to the Danger Zone, click “Change Visibility”, and select “Make internal”.
Read more >
Building organization-wide governance and re-use for CI/ ...
But silos across businesses can lead to duplication of effort, and potential to lose out on best practices. In this post, we'll explore...
Read more >
Sourcetree doesn't list GitHub private repos by default
To fix, go to your GitHub settings -> Applications -> Authorized OAuth Apps -> Sourcetree ('SourcetreeForWindows' in my case): you can see the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found