Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/PullRequestCreated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ruling-diff-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ concurrency:
permissions:
contents: read
pull-requests: write
issues: write

jobs:
ruling-diff-comment:
Expand All @@ -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 }}
Expand Down
24 changes: 0 additions & 24 deletions its/ruling/src/test/resources/expected/guava/java-S1128.sarif
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading