English 中文(简体)
阴ub行动未能从私人邮袋中取出一揽子公共物品。
原标题:Github action fails to fetch pub package from private repo

我有一个冲破碎的项目,它正在从Github的私人邮袋中挑选出一个包裹,例如:

dependencies:
  flutter:
    sdk: flutter

  my_package:
    git:
      url: [email protected]:username/my_package.git
      ref: main

当我用当地计算机操作flutter pub 时,所有东西都是罚款的,因为我用计算机通过扫描与Gite Hub相连接,但当我向Gitewell采取行动时,我未能用以下电文打包:。 专利(公用钥匙)。 我理解错误的信息,我想知道,这样做和采取行动是否有更好的办法。

这里是Gite Hub行动稿:

name: Flutter

on: [pull_request, push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: subosito/[email protected]

      - name: Install Dependencies
        run: flutter packages get

      - name: Format
        run: flutter format --set-exit-if-changed lib test

      - name: Analyze
        run: flutter analyze lib test

      - name: Run tests
        run: flutter test --no-pub --coverage --test-randomize-ordering-seed random

最佳回答

A "Permission denied" error means that the server rejected your connection. GitHub Actions only have access to the repository they run for.

采用两种方法,以吸引这一私人一揽子计划:

1- Personal access tokens

简便的方法是利用这一机会,使图书馆能够进入象征性和有吸引力的新个人通道。

dependencies:
  flutter:
    sdk: flutter
  private_package:
    git:
      url: https://username:[email protected]/user/repo
      ref: main