Giter VIP home page Giter VIP logo

flake8-check-action's People

Contributors

dependabot[bot] avatar tonybajan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flake8-check-action's Issues

flake8-check-action fails with a pull-request from a forked repository

I really appreciate your flake8 check action, and just started using it on an open-source project that I am working on (https://github.com/kevin218/Eureka). So far it works great when working on branches of the main repository, but I just encountered a bug where a pull-request was opened from a forked repository, and the flake8 test fails to run giving me a 403 Client Error. The full traceback is copied below:

Run tonybajan/[email protected]
  with:
    select: E1,E2,E3,E4,E5,E7,W6,F
    ignore: W504,W503,E704,E226,E722
    maxlinelength: 100
    repotoken: ***
/usr/bin/docker run --name f15549f0c5fb9a86c49bd86a8791c81183964_310d74 --label 6f1554 --workdir /github/workspace --rm -e INPUT_SELECT -e INPUT_IGNORE -e INPUT_MAXLINELENGTH -e INPUT_REPOTOKEN -e INPUT_PATH -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/Eureka/Eureka":"/github/workspace" 6f1554:9f0c5fb9a86c49bd86a8791c81183964
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.9/site-packages/flake8_check_action/__main__.py", line 60, in <module>
    exit_code = run_check()
  File "/usr/local/lib/python3.9/site-packages/flake8_check_action/__main__.py", line 27, in run_check
    check_run = GitHubCheckRun(github_token, repo, sha, workspace=workspace, path=path)
  File "/usr/local/lib/python3.9/site-packages/flake8_check_action/github.py", line 45, in __init__
    response.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.github.com/repos/kevin218/Eureka/check-runs

Any guidance on if/how this issue can be resolved would be much appreciated! If it is helpful, the current .yml file is located at https://github.com/kevin218/Eureka/blob/main/.github/workflows/flake8_linting.yml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.