runner: 2.168.0 does not work, permission issue, 2.165.2 worked fine

Describe the bug Our CI testing started failing today without any change to our .yml or other setup; the only difference is that the GitHub runner was apparently updated from 2.165.2 (which worked fine) to 2.168.0 (which does not work).

We use the “checkout” v2 action, and this seems to fail. Inspecting the raw logs, we see:

2020-04-07T17:35:08.9585074Z [command]/usr/bin/git log -1
2020-04-07T17:35:08.9627094Z commit df7ef1ee005fead76cadffd594e05915452b3583
2020-04-07T17:35:08.9627421Z Author: XXXXXX YYYYYY <XXXXXXX@optimyze.cloud>
2020-04-07T17:35:08.9628050Z Date:   Tue Apr 7 10:11:38 2020 -0700
2020-04-07T17:35:08.9628138Z 
2020-04-07T17:35:08.9628245Z     Commit message
2020-04-07T17:35:08.9935859Z ##[error]Access to the path '/home/runner/runners/2.168.0/_diag/pages/2a8aec61-a697-428a-8919-a42ea1742359_02880bdf-4d66-515a-adeb-1569bc940d0f_1.log' is denied.

To Reproduce Steps to reproduce the behavior:

  1. In our case, just creating a pull request that causes the action to run is enough.

Our .yml file looks like this:

(...)
jobs:
  run-unit-tests:
    runs-on: ubuntu-latest
    services:
      clickhouse:
        image: yandex/clickhouse-server
        ports:
          - 9000:9000
        volumes:
          - /:/var/lib/clickhouse
    container:
      image: [some-repository]/[some-image-name]:latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
        with:
          path: github.com/optimyze/prodfiler

Expected behavior Existing .yml files that worked with version 2.165.2 should not break due to Github updating to 2.168.0.

Runner Version and Platform

2.165.2 (working) vs. 2.168.0 (non-working)

The OS is whatever Github actions uses.

What’s not working?

The checkout action fails due to a permissions error.

Job Log Output

See above.

Apologies

I am not sure this is the right place to report the issue - if there is a more appropriate venue, please point me to it.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Sent it just now 😃

Glad you are unblocked and we understand the root cause, I am going to merge the PR and close this issue. Thanks for reporting this. 👍

Note that this can be reproduced without access to our private repo:

name: unit-test-on-pull-request

on:
  push:
    branches: [ master, develop, ci-develop ]
  pull_request:
    branches: [ master, develop, ci-develop ]

jobs:
  run-unit-tests:
    runs-on: ubuntu-latest
    services:
      clickhouse:
        image: yandex/clickhouse-server
        ports:
          - 9000:9000
        volumes:
          - /:/var/lib/clickhouse
    container:
      image: alpine:3.11.5
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
        with:
          path: github.com/actions/runner
      - name: Show the proc directory
        run: cat /proc/1/maps