我正试图在私人仓库上使用Github Action进行
目前,
以下是.yml文件:
git clone
,但我不确定如何配置它以使用SSH连接到GitHub。顺便说一下,这是一个macOS runner。目前,
actions/checkout
可以正常工作,但是当我直接调用git clone
时,就会抛出此错误。以下是.yml文件:
name: Release IOS
on:
push:
branches:
- github-action
jobs:
build:
name: Build IPA and upload to TestFlight
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Check Github User
run: |
git --version
git config user.name 'MyUsername'
git config user.email 'MyEmail'
git config user.name
git config user.email
env:
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14.17.0
env:
NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Set up SSH
uses: pioug/la-cle@v1.1.0
with:
GH_SSH_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Try copy a private repo
run: git clone https://github.com/MyUsername/MyRepo.git
/dev/tty
读取密码,也就是人类用户在监视运行的键盘输入。由于没有这样的用户,因此/dev/tty
会产生您看到的错误。现在的问题是要找出(a)是什么程序正在尝试从/dev/tty
读取密码,以及(b)为什么要这样做。(https://
部分是一个提示:这不是使用ssh。) - torek