Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
426 views
in Technique[技术] by (71.8m points)

github action cannot use action from private repo

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

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

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...