如何解决Laravel steam github 操作抛出权限错误
我正在尝试使用 Github Actions 部署到 Steam。我正在使用 https://docs.vapor.build/1.0/projects/deployments.html#deploying-from-ci 上描述的操作。
name: Deploy
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-PHP@v2
with:
PHP-version: 8.0
tools: composer:v2
coverage: none
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Require Vapor CLI
run: composer global require laravel/vapor-cli
- name: Deploy Environment
run: vapor deploy
env:
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
由于此错误,github 操作不断失败:
Error Output:
================
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/jawid-h/protobuf
.js.git
npm ERR!
npm ERR! Warning: Permanently added the RSA host key for IP address '140.82
.113.4' to the list of kNown hosts.
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
我已经尝试过传递 GITHUB_TOKEN,但不知何故不起作用。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。