Skip to content

RAT-560, RAT-558: Fix XXE warning #409

RAT-560, RAT-558: Fix XXE warning

RAT-560, RAT-558: Fix XXE warning #409

Workflow file for this run

name: SonarQube
on:
push:
# RAT-293: Global secrets are not visible on dependabot runs thus block if triggered by Dependabot
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
if: github.actor != 'dependabot[bot]'
name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'zulu' # Alternative distribution options are available.
- name: Cache SonarQube packages
uses: actions/cache@v6
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v6
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze at ASF-sonarcloud
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
run: ./mvnw verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=apache_creadur-rat -Dsonar.organization=apache -Dsonar.token=${SONAR_TOKEN}