[NO_ISSUE] Fix netty-related CVE. Unify versions to 4.1.118.Final (#3… #865
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance | |
# with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, | |
# software distributed under the License is distributed on an | |
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
# KIND, either express or implied. See the License for the | |
# specific language governing permissions and limitations | |
# under the License. | |
# Runs the SonarCloud analysis of the optaplanner main branch after a PR is merged. | |
name: SonarCloud Analysis | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'LICENSE*' | |
- '.gitignore' | |
- '**.md' | |
- '**.adoc' | |
- '*.txt' | |
- '.ci/**' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
sonarcloud-analysis: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
java-version: [ 17 ] | |
maven-version: [ '3.8.7' ] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Java and Maven Setup | |
uses: apache/incubator-kie-kogito-pipelines/.ci/actions/maven@main | |
with: | |
java-version: ${{ matrix.java-version }} | |
maven-version: ${{ matrix.maven-version }} | |
cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }} | |
- name: Build with Maven to measure code coverage | |
run: mvn -B --fail-at-end clean install -Prun-code-coverage | |
- name: Run SonarCloud analysis | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} | |
run: mvn -B --fail-at-end validate -Psonarcloud-analysis -Dsonar.projectKey=apache_incubator-kie-optaplanner -Dsonar.login=${{ env.SONARCLOUD_TOKEN }} |