All-Hands-AI / openhands-resolver

A system that tries to resolve all issues on a github repo with OpenHands.
MIT License
16 stars 3 forks source link

Bug in example workflow #171

Open d-walsh opened 2 hours ago

d-walsh commented 2 hours ago

The workflow is not valid. .github/workflows/openhands-resolver.yml (Line: 8, Col: 3): Error calling workflow 'All-Hands-AI/openhands-resolver/.github/workflows/openhands-resolver.yml@main'. The workflow is requesting 'contents: write, issues: write, pull-requests: write', but is only allowed 'contents: read, issues: none, pull-requests: none'

neubig commented 2 hours ago

Hi! Could you make sure that you followed step 4 here and gave the right permissions?

https://github.com/All-Hands-AI/openhands-resolver?tab=readme-ov-file#using-the-github-actions-workflow

d-walsh commented 1 hour ago

OK that worked thanks! But it might be easier to just add this to the example workflow file:

permissions:
  contents: write
  issues: write
  pull-requests: write