title: GitHub Actions workflow error: Permission denied
body: <p>I'm running a GitHub Actions workflow and it is failing with the following error.</p>
  
  <pre><code>Unhandled exception:
  FileSystemException: Cannot create file, path = '/github/home/.flutter' (OS Error: Permission denied, errno = 13)
  </code></pre>
  
  <p>I looked in <a href="https://help.github.com/en/articles/workflow-syntax-for-github-actions" rel="noreferrer">Workflow syntax for GitHub Actions</a> but couldn't find any instruction to solve this.</p>
  
  <p>My build file is looking like this:</p>
  
  <pre><code>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
  </code></pre>