Files
IntelliJ-IdeaVim/.github/workflows/pr-verification.yml
1grzyb1andClaude Opus 5.5 a594a245c8 Fix(VIM-4350): Take GitHub write access away from the changelog Claude run
Claude reads untrusted text (PR comments, YouTrack tickets) while updating
the changelog, and its PRs were auto-merged, so a prompt injection could
reach master or leak secrets through `gh`.

- Claude can only edit CHANGES.md and use read-only git/gh commands; the
  push token is not persisted in .git/config.
- A separate step opens the PR with GITHUB_TOKEN only if CHANGES.md is the
  only changed file, dispatches PR verification for it and enables
  auto-merge.
- Remove mergeClaudeChangelogPR.yml, Claude no longer opens these PRs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 11:49:17 +01:00

40 lines
1008 B
YAML

name: PR Verification
on:
pull_request:
branches: [ master ]
# Dispatched by updateChangelogClaude.yml: PRs opened with GITHUB_TOKEN don't trigger pull_request
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run tests
run: ./gradlew test -x :tests:property-tests:test -x :tests:long-running-tests:test
env:
ORG_GRADLE_PROJECT_downloadIdeaSources: false
ORG_GRADLE_PROJECT_instrumentPluginCode: false
- name: Upload problems report
if: always()
uses: actions/upload-artifact@v4
with:
name: problems-report
path: |
build/reports/
tests/java-tests/build/reports/
if-no-files-found: ignore