【发布时间】:2021-02-04 21:46:46
【问题描述】:
我有一个付费的 github 组织。
我们有一系列私人回购——除此之外,我们还需要使用私人回购中的操作。
这是一个简单的例子:
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()
该操作正在使用组织内的操作,但是除非我这样做:
org-com/ghaction-slack-notification
public.. 然后操作失败,因为由于权限而无法加载 tar。
错误类似于:
An action could not be found at the URI 'https://api.github.com/repos/org-com/ghaction-slack-notification/tarball/a5e91154adf6c4b628576352f8788ae4c203c02b'
如何运行使用私有仓库中的操作的操作?
【问题讨论】:
标签: github github-actions