Bump org.apache.tomcat:tomcat-catalina from 9.0.62 to 9.0.72 in /base/tomcat #1669
Workflow file for this run
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
name: Code Analysis | |
on: [push, pull_request] | |
jobs: | |
init: | |
name: Initialization | |
uses: ./.github/workflows/init.yml | |
secrets: inherit | |
build: | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | |
name: Waiting for build | |
needs: init | |
uses: ./.github/workflows/wait-for-build.yml | |
secrets: inherit | |
sonarcloud: | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository | |
name: Sonar Cloud code analysis | |
needs: [init, build] | |
runs-on: ubuntu-latest | |
env: | |
SHARED: /tmp/workdir/pki | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Retrieve PKI images | |
uses: actions/cache@v3 | |
with: | |
key: pki-images-${{ github.sha }} | |
path: pki-images.tar | |
- name: Load PKI images | |
run: docker load --input pki-images.tar | |
- name: Set up PKI container | |
run: | | |
tests/bin/runner-init.sh pki | |
- name: Copy build in current folder | |
run: docker cp pki:/usr/share/java/pki ./build | |
- name: Remove maven related file | |
run: rm -f pom.xml | |
- name: Start Sonar analysis | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
get-pr-ref: | |
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository | |
name: Sonar cloud PR fork analyses deferring | |
runs-on: ubuntu-latest | |
steps: | |
- name: Save PR information | |
run: | | |
mkdir -p ./pr | |
echo ${{ github.event.number }} > ./pr/NR | |
echo ${{ github.event.pull_request.base.ref }} > ./pr/BaseBranch | |
- name: Upload pr as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pr | |
path: pr/ | |
shellcheck: | |
name: Shellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run ShellCheck | |
uses: ludeeus/action-shellcheck@master | |
with: | |
severity: error | |
ignore_paths: tests # Don't check legacy test scripts |