相关疑难解决方法(0)

GitHub 操作工作流程错误:权限被拒绝

我正在运行 GitHub Actions 工作流程,但由于以下错误而失败。

Unhandled exception:
FileSystemException: Cannot create file, path = '/github/home/.flutter' (OS Error: Permission denied, errno = 13)
Run Code Online (Sandbox Code Playgroud)

我查看了 GitHub Actions 的工作流语法,但找不到任何说明来解决这个问题。

我的构建文件看起来像这样:

name: Flutter CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    container:
      image:  cirrusci/flutter:v1.7.8-hotfix.4

    steps:
    - uses: actions/checkout@v1
    - name: Install dependencies
      run: flutter pub get
      working-directory: my_app
    - name: Run tests
      run: flutter test
Run Code Online (Sandbox Code Playgroud)

docker github-actions

17
推荐指数
2
解决办法
2万
查看次数

标签 统计

docker ×1

github-actions ×1