Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a paid github org.

We have a series of private repos - and along with that we need to use actions which are also held in private repos.

here is a simple example:

name: FE Main - Commit received
on:
  - push

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: org-com/ghaction-slack-notification@v1
        with:
          slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
        if: always()

The action is using the action from within the org, however unless i make:

org-com/ghaction-slack-notification

public.. then the actions fail as the tar cannot be loaded due to permissions.

The error is something like:


An action could not be found at the URI 'https://api.github.com/repos/org-com/ghaction-slack-notification/tarball/a5e91154adf6c4b628576352f8788ae4c203c02b'

How can i run an action that uses an action in private repo?

question from:https://stackoverflow.com/questions/66054303/github-action-cannot-use-action-from-private-repo

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
435 views
Welcome To Ask or Share your Answers For Others

1 Answer

It looks like GitHub actions for private repo's isn't made available yet :'(

Hopefully it will be sometime this year!

P.S. I've also tried to run GitHub actions in my private repo, but I"m getting this error: Workflows can't be executed on this repository. Please check your payment method or billing status.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...