GitHub操作无法通过SSH加载,尽管它似乎可以使用SSH访问
我正在进行github操作,以便在我的PRs和PUSH上运行测试,但我无法确保测试能够访问我的私人回购 我已经测试了本地使用的SSH凭据,它们100%工作正常 这是我正在使用的SSH代理 这是我的github操作GitHub操作无法通过SSH加载,尽管它似乎可以使用SSH访问,github,ssh,github-actions,ssh-agent,Github,Ssh,Github Actions,Ssh Agent,我正在进行github操作,以便在我的PRs和PUSH上运行测试,但我无法确保测试能够访问我的私人回购 我已经测试了本地使用的SSH凭据,它们100%工作正常 这是我正在使用的SSH代理 这是我的github操作 # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
- release/*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- uses: webfactory/ssh-agent@v0.4.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
它似乎没有试图利用它获得的SSH密钥
因为它似乎是私有的,所以您需要使用来访问它。另见 这是一个HTTPS URL,因此没有多少SSH密钥可以使用:您需要一个SSH URL来实现这一点(
git@github.com:Tixpire/Tixpire服务器
)因为它似乎是私有的,所以您需要使用来访问它。另见
这是一个HTTPS URL,因此没有多少SSH密钥可以使用:您需要一个SSH URL来实现这一点(
git@github.com:Tixpire/Tixpire server
)我能够确定行-name:Use Node.js${{matrix.Node-version}
在使用之后被删除使其行为如同没有调用使用一样。我能够确定在使用之后被删除的行-name:Use Node.js${{matrix.Node-version}
使其行为如同没有调用使用一样。