From 0dc72c53303350de5bfdc02492cb085c79a513a0 Mon Sep 17 00:00:00 2001 From: Lucien Bart Date: Tue, 24 Nov 2026 10:37:18 +0100 Subject: [PATCH] DO NOT MERGE: demonstrate ruling review-time survey --- .github/workflows/PullRequestCreated.yml | 3 +-- .github/workflows/ruling-diff-comment.yml | 3 ++- .../resources/expected/guava/java-S1128.sarif | 24 ------------------- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/PullRequestCreated.yml b/.github/workflows/PullRequestCreated.yml index 376f51bf7d6..fd547ca525c 100644 --- a/.github/workflows/PullRequestCreated.yml +++ b/.github/workflows/PullRequestCreated.yml @@ -11,8 +11,7 @@ jobs: permissions: id-token: write # For external PR, ticket should be created manually - if: | - github.event.pull_request.head.repo.full_name == github.repository + if: ${{ false }} steps: - id: secrets uses: SonarSource/vault-action-wrapper@v3 diff --git a/.github/workflows/ruling-diff-comment.yml b/.github/workflows/ruling-diff-comment.yml index cc4f44d5f8b..5823b96ffc9 100644 --- a/.github/workflows/ruling-diff-comment.yml +++ b/.github/workflows/ruling-diff-comment.yml @@ -29,6 +29,7 @@ concurrency: permissions: contents: read pull-requests: write + issues: write jobs: ruling-diff-comment: @@ -45,7 +46,7 @@ jobs: enable-cache: true - name: Post ruling diff comment - uses: SonarSource/core-languages-tooling-public/ruling-diff-comment@master + uses: SonarSource/core-languages-tooling-public/ruling-diff-comment@d23bc854d3d4c58fae40d2058ba9f704f460dab3 with: pr-number: ${{ inputs.pr-number || github.event.pull_request.number }} repository: ${{ github.repository }} diff --git a/its/ruling/src/test/resources/expected/guava/java-S1128.sarif b/its/ruling/src/test/resources/expected/guava/java-S1128.sarif index 30c6f30357e..5836467dfb3 100644 --- a/its/ruling/src/test/resources/expected/guava/java-S1128.sarif +++ b/its/ruling/src/test/resources/expected/guava/java-S1128.sarif @@ -12,30 +12,6 @@ }, "language" : "en-US", "results" : [ { - "ruleId" : "java:S1128", - "ruleIndex" : -1, - "kind" : "fail", - "level" : "warning", - "message" : { - "text" : "Remove this unused import 'java.util.Map.Entry'." - }, - "locations" : [ { - "id" : -1, - "physicalLocation" : { - "artifactLocation" : { - "uri" : "guava:src/com/google/common/cache/LocalCache.java", - "index" : -1 - }, - "region" : { - "startLine" : 67, - "startColumn" : 8, - "endLine" : 67, - "endColumn" : 27 - } - } - } ], - "rank" : -1.0 - }, { "ruleId" : "java:S1128", "ruleIndex" : -1, "kind" : "fail",