Skip to content

Commit

Permalink
Merge branch 'master' into sq-10
Browse files Browse the repository at this point in the history
  • Loading branch information
gtoison committed Feb 28, 2024
2 parents f4df736 + dc0ac9a commit 5368042
Show file tree
Hide file tree
Showing 13 changed files with 350 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version-file: '.nvmrc'
cache: npm
- run: |
npm ci
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version-file: '.nvmrc'
cache: npm
- run: |
npm ci
Expand Down
114 changes: 57 additions & 57 deletions .github/actions/sonar-update-center/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
uses: ./.github/actions/sonar-update-center
with:
prop-file: findbugs.properties
description: Use SpotBugs 4.8.3, sb-contrib 7.6.4, and findsecbugs 1.12.0
description: Use SpotBugs 4.8.3, sb-contrib 7.6.4, and findsecbugs 1.13.0
minimal-supported-sq-version: 9.9
latest-supported-sq-version: LATEST
changelog-url: https://github.com/spotbugs/sonar-findbugs/releases/tag/${{ github.event.release.tag_name }}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SonarQube Spotbugs Plugin
[![.github/workflows/build.yml](https://github.com/spotbugs/sonar-findbugs/actions/workflows/build.yml/badge.svg)](https://github.com/spotbugs/sonar-findbugs/actions/workflows/build.yml)
![FindBugs Rules](https://img.shields.io/badge/SpotBugs_rules-929-brightgreen.svg?maxAge=2592000)
![FindBugs Rules](https://img.shields.io/badge/SpotBugs_rules-933-brightgreen.svg?maxAge=2592000)
[![Coverage Status](https://sonarcloud.io/api/project_badges/measure?project=com.github.spotbugs%3Asonar-findbugs-plugin&metric=coverage)](https://sonarcloud.io/component_measures?id=com.github.spotbugs:sonar-findbugs-plugin&metric=coverage)

## Description / Features
Expand Down Expand Up @@ -72,4 +72,5 @@ Findbugs Plugin version|Embedded SpotBugs/Findbugs version|Embedded Findsecbugs
4.2.5 | 4.8.1 (SpotBugs) | 1.12.0 | 7.6.0 (sb-contrib) | 1.8|7.9~|5.10.1.16922
4.2.6 | 4.8.2 (SpotBugs) | 1.12.0 | 7.6.2 (sb-contrib) | 1.8|7.9~|5.10.1.16922
4.2.7 | 4.8.3 (SpotBugs) | 1.12.0 | 7.6.4 (sb-contrib) | 1.8|7.9~|5.10.1.16922
4.2.8-SNAPSHOT | 4.8.3 (SpotBugs) | 1.12.0 | 7.6.4 (sb-contrib) | 1.8|7.9~|5.10.1.16922
4.2.8 | 4.8.3 (SpotBugs) | 1.13.0 | 7.6.4 (sb-contrib) | 1.8|7.9~|5.10.1.16922
4.2.9-SNAPSHOT | 4.8.3 (SpotBugs) | 1.13.0 | 7.6.4 (sb-contrib) | 1.8|7.9~|5.10.1.16922
4 changes: 2 additions & 2 deletions generate_profiles/BuildXmlFiles.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import groovy.json.JsonSlurper;

@Grab(group='com.github.spotbugs', module='spotbugs', version='4.8.3'),
@Grab(group='com.mebigfatguy.sb-contrib', module='sb-contrib', version='7.6.4'),
@Grab(group='com.h3xstream.findsecbugs' , module='findsecbugs-plugin', version='1.12.0')]
@Grab(group='com.h3xstream.findsecbugs' , module='findsecbugs-plugin', version='1.13.0')]
)


FB = new Plugin(groupId: 'com.github.spotbugs', artifactId: 'spotbugs', version: '4.8.3')
CONTRIB = new Plugin(groupId: 'com.mebigfatguy.sb-contrib', artifactId: 'sb-contrib', version: '7.6.4')
FSB = new Plugin(groupId: 'com.h3xstream.findsecbugs', artifactId: 'findsecbugs-plugin', version: '1.12.0')
FSB = new Plugin(groupId: 'com.h3xstream.findsecbugs', artifactId: 'findsecbugs-plugin', version: '1.13.0')

def destDir() {
Paths.get("..", "src/main/resources/org/sonar/plugins/findbugs").toAbsolutePath().normalize().toFile()
Expand Down
3 changes: 3 additions & 0 deletions generate_profiles/FsbClassifier.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class FsbClassifier {
"XXE_XPATH",
"XXE_XSLT_TRANSFORM_FACTORY",
"XXE_DTD_TRANSFORM_FACTORY",
"XXE_SCHEMA_FACTORY",
"XXE_VALIDATOR",
"SQL_INJECTION_HIBERNATE",
"SQL_INJECTION_JDO",
"SQL_INJECTION_JPA",
Expand Down Expand Up @@ -167,6 +169,7 @@ class FsbClassifier {
"IMPROPER_UNICODE",
"SAML_IGNORE_COMMENTS",
"DANGEROUS_PERMISSION_COMBINATION",
"POTENTIAL_XML_INJECTION",
]

static majorJspBugs = ["XSS_REQUEST_PARAMETER_TO_JSP_WRITER",
Expand Down
Loading

0 comments on commit 5368042

Please sign in to comment.