【问题标题】:github action cannot use action from private repogithub 操作不能使用来自私人仓库的操作
【发布时间】: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


【解决方案1】:

文档似乎表明这对于组织的 GitHub Enterprise Cloud 的内部存储库是可能的,Allowing access to components in an internal repository。虽然我继续收到同样的错误。此外,问题Use actions from internal repositories 计划在 2021 年第四季度发布。

【讨论】:

    【解决方案2】:

    看起来像是私有仓库isn't made available yet 的 GitHub 操作:'(

    希望今年的某个时候!

    附:我也尝试在我的私人仓库中运行 GitHub 操作,但出现此错误:Workflows can't be executed on this repository. Please check your payment method or billing status.

    【讨论】:

      猜你喜欢
      • 2021-11-08
      • 2021-05-12
      • 2021-10-29
      • 2023-01-21
      • 2022-10-13
      • 2021-06-30
      • 2022-06-28
      • 2013-08-12
      • 1970-01-01
      相关资源
      最近更新 更多