flake8-github-action icon indicating copy to clipboard operation
flake8-github-action copied to clipboard

Cannot read property 'id' of undefined

Open acarl005 opened this issue 5 years ago • 2 comments

Hello. My action is failing on the "Run flake8" step with the message ##[error]Cannot read property 'id' of undefined.

Here is my workflow YAML

name: Lint and Type Check

on:
  pull_request:
    branches:
      - master
  push:
    branches:
      - ci/lint-*

jobs:
  lint-and-type-check:
    name: Lint and Type Check
    runs-on: ubuntu-latest
    steps:
      - name: Setup Python
        uses: actions/setup-python@v1
        with:
          python-version: 3.x
          architecture: x64
      - uses: actions/checkout@master
      - name: Install flake8
        run: pip install flake8
      - name: Run flake8
        uses: suo/flake8-github-action@releases/v1
        with:
          checkName: lint-and-type-check
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

acarl005 avatar May 05 '20 21:05 acarl005

We have the very same. The failure only appears if there are issues though. If there are non, everything works fine.

m-kuhn avatar May 06 '20 10:05 m-kuhn

FYI I created a new GitHub Action and applied a fix for this and other open issues as this repo doesn't seem to be maintained anymore.

https://github.com/marketplace/actions/python-flake8

julianwachholz avatar Jun 25 '20 05:06 julianwachholz