Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`create_github_check': Forbidden (RuntimeError) in Vic2ToHoI4 #7

Open
IhateTrains opened this issue May 3, 2021 · 1 comment
Open

Comments

@IhateTrains
Copy link

IhateTrains commented May 3, 2021

Tool 'cwtools.cli' (version '0.0.15') was successfully installed.
Cloning into '/src/cwtools-hoi4-config'...
Using metadata cache from 'cwtools/cwtools-cache-files'...
If git fails here, it is most likely because the selected game (hoi4) is not yet supported in the 'cwtools/cwtools-cache-files'. In that case, use CWTools.CLI to generate a full cache of selected game and set it with the cache parameter. Consult README for more information.
Cloning into 'cwtools-cache-files'...
renamed 'cwtools-cache-files/hoi4.cwv.bz2' -> './hoi4.cwv.bz2'
CWTOOLS CHECK
CI ENVIROMENT: github
Is pull request...
Annotating only changed files...
"{\"message\":\"Resource not accessible by integration\",\"documentation_url\":\"https://docs.github.com/rest/reference/checks#create-a-check-run\"}"
/action/lib/cwtools.rb:138:in `create_github_check': Forbidden (RuntimeError)
	from /action/lib/cwtools.rb:303:in `run_github'
	from /action/lib/cwtools.rb:326:in `run'
	from /action/lib/cwtools.rb:333:in `<main>'

Full log:
https://github.com/ParadoxGameConverters/Vic2ToHoI4/pull/972/checks?check_run_id=2493040090

Here's the workflow:

name: CWTools CI

on: [pull_request, push] # other events may work but are not supported

jobs:
  cwtools_job:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1 # required
    - uses: cwtools/[email protected]
      with:
        game: hoi4
        modPath: "Vic2ToHoI4/Data_Files/blankMod/output"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

What might be causing this?

@soryy708
Copy link

soryy708 commented Mar 6, 2023

Probably the github token is missing permissions.

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

Try adding:

permissions:
  checks: write
  contents: read
  statuses: write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants