Skip to content

fix(cli): report mistyped subcommand before options #48

fix(cli): report mistyped subcommand before options

fix(cli): report mistyped subcommand before options #48

name: AI Backport Resolver
on:
issue_comment:
types: [created]
permissions:
contents: write
pull-requests: write
issues: read
jobs:
resolve:

Check failure on line 12 in .github/workflows/resolve-conflicts.yml

View workflow run for this annotation

GitHub Actions / AI Backport Resolver

Invalid workflow file

The workflow is not valid. .github/workflows/resolve-conflicts.yml (Line: 12, Col: 3): Error calling workflow 'elastic/clients-team-automations/.github/workflows/ai-backport-resolver.yml@main'. The nested job 'resolve' is requesting 'issues: write', but is only allowed 'issues: read'.
if: |
(github.event.comment.user.login == 'github-actions[bot]' ||
github.event.comment.user.login == 'elastic-vault-github-plugin-prod[bot]') &&
contains(github.event.comment.body, 'To backport manually, run these commands')
uses: elastic/clients-team-automations/.github/workflows/ai-backport-resolver.yml@main
with:
comment_body: ${{ github.event.comment.body }}
comment_user: ${{ github.event.comment.user.login }}
pr_number: ${{ github.event.issue.number }}
secrets:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
OPENROUTER_BASE_URL: ${{ secrets.OPENROUTER_BASE_URL }}